This commit is contained in:
David Majdandžić
2023-03-24 16:38:45 +01:00
parent 5ac4a6275b
commit ca50864142
2 changed files with 25 additions and 34 deletions

View File

@@ -5,7 +5,7 @@ const WS_SERVER_PORT = process.env.WS_SERVER_PORT || 8191;
const ws = new WebSocket(`ws://localhost:${WS_SERVER_PORT}`);
ws.on('open', () => {
console.log('WebSocket connection established');
ws.send(3);
ws.send(0);
});
ws.on('message', (data) => {
console.log(data);