1
0
Fork 0
forked from svrjs/svrjs

Add handler for "\x12CLOSE" messages

This commit is contained in:
Dorian Niemiec 2024-08-25 20:20:15 +02:00
parent 3de85443d5
commit 3eacbdb397

View file

@ -1265,6 +1265,8 @@ function msgListener(message) {
} }
if (message == "\x12END") { if (message == "\x12END") {
// Do nothing // Do nothing
} else if (msg == "\x12CLOSE") {
closedMaster = true;
} else if (message[0] == "\x12") { } else if (message[0] == "\x12") {
console.log("RECEIVED CONTROL MESSAGE: " + message.substr(1)); console.log("RECEIVED CONTROL MESSAGE: " + message.substr(1));
} else { } else {