From 3bc5e8b7929490c0bd309d2e83bb0e4983070d80 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Feb 2024 20:01:24 -0600 Subject: [PATCH] wip --- shell/watcher.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);