mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
fix socket size limit
This commit is contained in:
@@ -6,6 +6,9 @@ const io = new SocketIOServer(httpServer, {
|
|||||||
transports: ['websocket', 'polling'],
|
transports: ['websocket', 'polling'],
|
||||||
pingInterval: 5000,
|
pingInterval: 5000,
|
||||||
pingTimeout: 7000,
|
pingTimeout: 7000,
|
||||||
|
// Upload forwarding sends base64 audio payloads over socket events.
|
||||||
|
// Default max payload (~1MB) causes disconnect/reconnect on larger files.
|
||||||
|
maxHttpBufferSize: 16 * 1024 * 1024,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Allow more service listeners without warnings.
|
// Allow more service listeners without warnings.
|
||||||
|
|||||||
Reference in New Issue
Block a user