From c5af8346217b088e7b1fec592e30558d26f6d430 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Feb 2024 19:58:28 -0600 Subject: [PATCH] wip --- shell/watcher.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/watcher.js b/shell/watcher.js index aebf4d7..6d70afc 100644 --- a/shell/watcher.js +++ b/shell/watcher.js @@ -46,7 +46,10 @@ unix_socket_server.listen(socketPath, () => { function processMessage(message) { console.log(message); try { - const { variable, value } = JSON.parse(message); + msg = JSON.parse(message); + console.log(msg); + let variable = msg[0]; + let value = msg[1]; console.log({var: variable, val: value}); const diff = calculateDiff(variable, progvars[variable], value); console.log({diff: diff})