From d57c774a30c864ec55f0c2e769be8c1a94c0822e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 30 May 2023 11:15:51 +0100 Subject: [PATCH] Disable HTTP polling for websockets and rely on websocket connection only --- packages/frontend-core/src/utils/websocket.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend-core/src/utils/websocket.js b/packages/frontend-core/src/utils/websocket.js index 85c09acc14..e5646120c8 100644 --- a/packages/frontend-core/src/utils/websocket.js +++ b/packages/frontend-core/src/utils/websocket.js @@ -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"] }) }