This commit is contained in:
legop3
2025-11-15 04:25:33 -05:00
parent 49253a6207
commit d984951b20
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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' },
});