mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 16:38:17 +00:00
fix(ui): do not fallback to polling and use websocket as transport method (#5705)
This commit is contained in:
parent
aab7544778
commit
ea35d77b52
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user