import * as nodeSchedule from 'node-schedule'; import { WebSocketService } from './WebsocketService'; export class ScheduleService { constructor() { } // startTestSchedule() { // const shedule = nodeSchedule.scheduleJob('test-schedule', { // second: 0, // }, async () => { // console.debug('Test schedule: %s, triggers: %s', Date.now(), shedule.triggeredJobs()); // WebSocketService.broadcast('SERVER_PUSH', { title: 'Test', options: { // body: 'This is a test message', // icon: 'https://tt.ksr.la/logo-1dc5sdvb.jpg', // data: { // url: 'https://google.com', // }, // } }); // }); // } }