mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
push! PUSH!!
This commit is contained in:
@@ -33,6 +33,9 @@ io.on('connection', (socket) => {
|
||||
if (!roverId) {
|
||||
throw new Error('roverId required');
|
||||
}
|
||||
if (!roverManager.rovers.has(roverId)) {
|
||||
throw new Error('Rover offline');
|
||||
}
|
||||
if (!canView(socket, roverId)) {
|
||||
throw new Error('Not authorized for video');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user