From 3eacbdb397ca24ce414b607da8e14ba786325266 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 20:20:15 +0200 Subject: [PATCH] Add handler for "\x12CLOSE" messages --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index b4c2160..b183692 100644 --- a/src/index.js +++ b/src/index.js @@ -1265,6 +1265,8 @@ function msgListener(message) { } if (message == "\x12END") { // Do nothing + } else if (msg == "\x12CLOSE") { + closedMaster = true; } else if (message[0] == "\x12") { console.log("RECEIVED CONTROL MESSAGE: " + message.substr(1)); } else {