Disable HTTP polling for websockets and rely on websocket connection only
This commit is contained in:
parent
f7d8b8af7f
commit
d57c774a30
|
@ -19,5 +19,8 @@ export const createWebsocket = path => {
|
||||||
reconnectionDelayMax: 5000,
|
reconnectionDelayMax: 5000,
|
||||||
// Timeout after 4 seconds so we never stack requests
|
// Timeout after 4 seconds so we never stack requests
|
||||||
timeout: 4000,
|
timeout: 4000,
|
||||||
|
// Disable polling and rely on websocket only, as HTTP transport
|
||||||
|
// will only work with sticky sessions which we don't have
|
||||||
|
transports: ["websocket"]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue