Minor fixes

This commit is contained in:
David Majdandžić
2023-03-26 17:12:32 +02:00
parent 5187854d5d
commit 8e5e1fcda3
3 changed files with 12 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ const ws = new WebSocket(`ws://localhost:${WS_SERVER_PORT}`);
const ws2 = new WebSocket(`ws://localhost:${WS_SERVER_PORT}`);
ws.on('open', () => {
console.log('WebSocket connection established');
ws.send("client:0");
ws.send("client:1");
});
ws.on('message', (data) => {
console.log(String(data));