We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be0ec8 commit 0d2984bCopy full SHA for 0d2984b
web/src/hooks/useSocketIO.ts
@@ -40,8 +40,10 @@ export function useSocketIO({
40
token: sessionToken
41
},
42
reconnection: true,
43
- reconnectionAttempts: 2,
44
- reconnectionDelay: 10000,
+ reconnectionAttempts: 5,
+ reconnectionDelay: 1000,
45
+ reconnectionDelayMax: 5000,
46
+ randomizationFactor: 0.5,
47
transports: ['websocket'],
48
timeout: 20000,
49
path: configs.SOCKET_ENDPOINT
0 commit comments