socket improvements

- setters broadcast change
- added lower third message
- add current event title message
- restrict to websockets transport
This commit is contained in:
cv
2021-04-13 21:42:57 +02:00
parent 4a2fc378fb
commit cdbcdef99a
5 changed files with 76 additions and 20 deletions
+1 -5
View File
@@ -17,13 +17,9 @@ const port = process.env.PORT || config.server.port;
const eventlist = require('./data/eventsData.json');
const EventTimer = require('./classes/EventTimer.js');
// TODO: this should be replaced by some sort of calculation
let durationForNow = 5400;
// init timer
global.timer = new EventTimer();
timer.setupWithEventList(eventlist);
// timer.setupWithSeconds(durationForNow, true);
console.log(timer.print());
// Socket
const initiateSocket = require('./controllers/socketController.js');