mirror of
https://github.com/immich-app/immich.git
synced 2025-12-05 00:04:05 +09:00
Use polling as primary connection for socket io
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user