mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
chat history, better turn queue updates
This commit is contained in:
@@ -3,6 +3,9 @@ const { httpServer } = require('./http');
|
||||
|
||||
const io = new SocketIOServer(httpServer, {
|
||||
cors: { origin: '*' },
|
||||
transports: ['websocket', 'polling'],
|
||||
pingInterval: 5000,
|
||||
pingTimeout: 7000,
|
||||
});
|
||||
|
||||
// Allow more service listeners without warnings.
|
||||
|
||||
@@ -9,8 +9,6 @@ httpServer.on('upgrade', (req, socket, head) => {
|
||||
roverWSS.handleUpgrade(req, socket, head, (ws) => {
|
||||
roverWSS.emit('connection', ws, req);
|
||||
});
|
||||
} else {
|
||||
socket.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user