merasabkuch commited on
Commit
1c677e7
·
verified ·
1 Parent(s): 22311b8

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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
  }