Implement new "Busy" state for client and center to signify many message send

This commit is contained in:
David Majdandžić
2023-03-27 17:24:32 +02:00
parent 2e09392627
commit eb9c8468e2
2 changed files with 13 additions and 18 deletions

View File

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