Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): always use websocket transport #6564

Merged
merged 1 commit into from
Jan 22, 2024
Merged

fix(web): always use websocket transport #6564

merged 1 commit into from
Jan 22, 2024

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Jan 22, 2024

Fixes #4611 by always using the websocket transport. This change no longer falls backs to polling, which requires a sticky session implementation (webserver proxy) to work in multi-server environments.

@jrasm91 jrasm91 requested a review from bo0tzz January 22, 2024 03:23
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4a92cf6
Status: ✅  Deploy successful!
Preview URL: https://1d435862.immich.pages.dev
Branch Preview URL: https://fix-web-no-polling.immich.pages.dev

View logs

@bo0tzz
Copy link
Member

bo0tzz commented Jan 22, 2024

What about configuring it to try websocket first, but still allow fallback to polling?
transports: ["websocket", "polling"]

@jrasm91
Copy link
Contributor Author

jrasm91 commented Jan 22, 2024

I don't think that will fix the issue for multi server environments.

@jrasm91
Copy link
Contributor Author

jrasm91 commented Jan 22, 2024

@bo0tzz
Copy link
Member

bo0tzz commented Jan 22, 2024

I don't think that will fix the issue for multi server environments.

It should work fine if websockets are supported, right? If the polling fallback is triggered then it could indeed cause issues (but the alternative is that it will just straight up not work).

@jrasm91 jrasm91 merged commit bd2dbb4 into main Jan 22, 2024
24 of 25 checks passed
@jrasm91 jrasm91 deleted the fix/web-no-polling branch January 22, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Immich Web Reports Server "offline" and "version" unknown.
2 participants