From be57e9658814aa15b5c3e985fc390d354c0f7209 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Feb 2024 17:43:02 -0600 Subject: [PATCH] wip --- shell/init_shell.sh | 2 ++ shell/watcher.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/init_shell.sh b/shell/init_shell.sh index 1c29f30..0aeb389 100644 --- a/shell/init_shell.sh +++ b/shell/init_shell.sh @@ -10,4 +10,6 @@ cd /data/openpilot/logs rm -f watcher.log.gz ls watcher.log && gzip watcher.log +chmod +x /data/openpilot/shell/watcher_run_loop.sh + screen -dmS "watcher" /data/openpilot/shell/watcher_run_loop.sh diff --git a/shell/watcher.js b/shell/watcher.js index ac742db..c16d24e 100644 --- a/shell/watcher.js +++ b/shell/watcher.js @@ -162,7 +162,7 @@ wss.on('connection', function connection(ws) { }); // Handle upgrade of the request -websocket_server.on('upgrade', function upgrade(request, socket, head) { +wss.on('upgrade', function upgrade(request, socket, head) { const { pathname } = url.parse(request.url); if (pathname === '/ws') {