Disable HTTP polling for websockets and rely on websocket connection only

This commit is contained in:
Andrew Kingston 2023-05-30 11:15:51 +01:00
parent f7d8b8af7f
commit d57c774a30
1 changed files with 3 additions and 0 deletions

View File

@ -19,5 +19,8 @@ export const createWebsocket = path => {
reconnectionDelayMax: 5000,
// Timeout after 4 seconds so we never stack requests
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"]
})
}