fix(ui): do not fallback to polling and use websocket as transport method (#5705)

This commit is contained in:
Chirag Madlani 2022-06-28 19:23:46 +05:30 committed by GitHub
parent aab7544778
commit ea35d77b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,10 @@ const WebSocketProvider: FC<Props> = ({ children }: Props) => {
query: { query: {
userId: currentUser?.id, userId: currentUser?.id,
}, },
// Since we have load balancer in our application
// We need to enforce transports to be websocket only
// Refer: https://socket.io/docs/v3/using-multiple-nodes/
transports: ['websocket'],
}) })
); );
}, [currentUser]); }, [currentUser]);