Skip to content

Commit 024f96d

Browse files
committed
Allow websocket upgrade from polling
1 parent 52122b5 commit 024f96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/hooks/useSocketIO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function useSocketIO({
4141
reconnection: true,
4242
reconnectionAttempts: 2,
4343
reconnectionDelay: 10000,
44-
transports: ['polling'],
44+
transports: ['polling', 'websocket'],
4545
timeout: 20000,
4646
path: configs.SOCKET_ENDPOINT,
4747
forceNew: true // Force new connection to prevent reusing stale connections

0 commit comments

Comments
 (0)