diff --git a/lib/www/server/ws/index.js b/lib/www/server/ws/index.js index 269b76b..d0595ea 100644 --- a/lib/www/server/ws/index.js +++ b/lib/www/server/ws/index.js @@ -3,6 +3,13 @@ const URL = require('url'); const db = require('./db'); function start (server, pingInterval=30000) { + + const channels = [ + "realtime", "event", "project", + "preplot_lines", "preplot_points", + "raw_lines", "raw_shots", + "final_lines", "final_shots" + ]; const wsServer = new ws.Server({ noServer: true }); wsServer.on('connection', socket => { @@ -21,7 +28,7 @@ function start (server, pingInterval=30000) { } }); - db.listen(["realtime", "event", "project"], (data) => { + db.listen(channels, (data) => { wsServer.clients.forEach( (socket) => { socket.send(JSON.stringify(data)); })