Fall back to REST polling when the WebSocket cannot connect #8

Closed
matitos wants to merge 0 commits from fix/graceful-ws-fallback into main
pull from: fix/graceful-ws-fallback
Owner

Mobile networks/browsers can block wss:// upgrades even when the page loads (server verified: browser-style handshake gets 101). After 3 socket failures the header shows polling (5s) instead of a perpetual reconnecting; the REST poll keeps data correct. Also surfaces the browser's socket error message.

Frontend build + tests pass.

Mobile networks/browsers can block `wss://` upgrades even when the page loads (server verified: browser-style handshake gets 101). After 3 socket failures the header shows **polling (5s)** instead of a perpetual **reconnecting**; the REST poll keeps data correct. Also surfaces the browser's socket error message. Frontend build + tests pass.
matitos added 1 commit 2026-09-20 14:48:45 +02:00
Fall back to REST polling when the WebSocket cannot connect
CI/CD / backend (pull_request) Successful in 6m6s
CI/CD / frontend (pull_request) Successful in 5m15s
CI/CD / build (pull_request) Skipped
CI/CD / deploy (pull_request) Skipped
CI/CD / cleanup (pull_request) Skipped
bf7eda3f6a
On some mobile networks/browsers the wss:// upgrade is blocked even though the
page loads (the server side is verified working: a browser-style handshake gets
101). After three socket failures the header now shows "polling (5s)" instead
of a misleading perpetual "reconnecting", since the 5s REST poll keeps all data
correct. The socket error handler also surfaces the browser's message.
matitos closed this pull request 2026-09-20 15:01:00 +02:00
matitos deleted branch fix/graceful-ws-fallback 2026-09-20 15:01:00 +02:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: matitos/crypto_trading#8