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})