mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
guh server
This commit is contained in:
@@ -33,6 +33,11 @@ roverWSS.on('connection', (ws) => {
|
||||
}
|
||||
if (msg.type === 'hello') {
|
||||
roverId = msg.name;
|
||||
logger.info('Received rover hello', {
|
||||
roverId,
|
||||
keys: Object.keys(msg),
|
||||
cameraServo: msg.cameraServo,
|
||||
});
|
||||
roverManager.upsertRover(msg, ws);
|
||||
roverManager.broadcastRoster();
|
||||
sendAlert({ color: COLORS.success, title: 'Rover Online', message: roverId });
|
||||
|
||||
Reference in New Issue
Block a user