Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
@@ -318,7 +318,7 @@ const broadcastRoomData = () => {
|
|
318 |
if (currentDeviceStates[roomId]) {
|
319 |
console.log(currentDeviceStates[roomId]);
|
320 |
|
321 |
-
client.send(JSON.stringify({ type: 'roomData', roomData: currentDeviceStates[roomId] }));
|
322 |
}
|
323 |
});
|
324 |
}
|
|
|
318 |
if (currentDeviceStates[roomId]) {
|
319 |
console.log(currentDeviceStates[roomId]);
|
320 |
|
321 |
+
client.send(JSON.stringify({ type: 'roomData', roomData: currentDeviceStates[roomId] , roomId: roomId}));
|
322 |
}
|
323 |
});
|
324 |
}
|