Fix issues with websocket communication on status change

This commit is contained in:
David Majdandžić
2023-03-24 16:45:44 +01:00
parent ca50864142
commit 5dc0e36818
2 changed files with 9 additions and 7 deletions

View File

@@ -8,5 +8,5 @@ ws.on('open', () => {
ws.send(0);
});
ws.on('message', (data) => {
console.log(data);
console.log(String(data));
});