diff --git a/shell/watcher.js b/shell/watcher.js index 6d70afc..0b0e358 100644 --- a/shell/watcher.js +++ b/shell/watcher.js @@ -19,7 +19,7 @@ if (fs.existsSync( socketPath )) { } const unix_socket_server = net.createServer((connection) => { - console.log('UnixSocket Client connected.'); + // console.log('UnixSocket Client connected.'); let buffer = ''; @@ -35,7 +35,7 @@ const unix_socket_server = net.createServer((connection) => { }); connection.on('end', () => { - console.log('UnixSocket Client disconnected.'); + // console.log('UnixSocket Client disconnected.'); }); }); @@ -176,6 +176,7 @@ wss.on('connection', function connection(ws) { // Send initial state ws.send(calculateDiff({}, progvars)); + ws.send("progvars = "+JSON.stringify(progvars)+";"); ws.on('message', function incoming(message) { console.log('received: %s', message);