mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
f
This commit is contained in:
@@ -4,7 +4,9 @@ const configuredUrl = import.meta.env.VITE_ROVERD_URL?.trim();
|
||||
const serverUrl = configuredUrl && configuredUrl.length > 0 ? configuredUrl : undefined;
|
||||
|
||||
export const socket = io(serverUrl, {
|
||||
transports: ['websocket'],
|
||||
transports: ['websocket', 'polling'],
|
||||
timeout: 15000,
|
||||
reconnectionAttempts: 5,
|
||||
query: { role: 'user' },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user