mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
flip camera
This commit is contained in:
@@ -356,6 +356,10 @@ io.on('connection', (socket) => {
|
||||
cb({ error: 'Spectator role required' });
|
||||
return;
|
||||
}
|
||||
if (getMode() === MODES.LOCKDOWN) {
|
||||
cb({ error: 'Spectating disabled in lockdown' });
|
||||
return;
|
||||
}
|
||||
logger.info('Spectator subscribing to all rovers', socket.id);
|
||||
for (const record of rovers.values()) {
|
||||
socket.join(record.room);
|
||||
|
||||
Reference in New Issue
Block a user