1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

Use polling as primary connection for socket io

This commit is contained in:
Alex Tran 2022-06-19 18:21:11 -05:00
parent 4aa66f4156
commit 8840911f22
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -5,7 +5,7 @@ import { assets } from './assets';
export const openWebsocketConnection = (accessToken: string) => { export const openWebsocketConnection = (accessToken: string) => {
const websocket = io(serverEndpoint, { const websocket = io(serverEndpoint, {
transports: ['websocket', 'polling'], transports: ['polling'],
reconnection: true, reconnection: true,
forceNew: true, forceNew: true,
autoConnect: true, autoConnect: true,