PR #783 follow-up: revert Socket.IO to polling-first transport
PR #783 reordered transports to websocket-first for faster connects. Reverting to the polling-first default: it's the most compatible behind reverse proxies that don't forward WebSocket upgrade headers (common self-hosted setups), where websocket-first silently breaks real-time updates. The connect-time gain isn't worth the connectivity risk. Everything else from #783 (scroll-pause, content- visibility, dashboard parallelization, settings fixes, reduce-effects) kept.
This commit is contained in:
parent
4c65f403e1
commit
8b585b9b02
1 changed files with 5 additions and 1 deletions
|
|
@ -382,7 +382,11 @@ function initializeWebSocket() {
|
|||
}
|
||||
|
||||
socket = io({
|
||||
transports: ['websocket', 'polling'],
|
||||
// Polling-first (Socket.IO default) then upgrade — most compatible behind
|
||||
// reverse proxies that don't cleanly forward WebSocket upgrade headers
|
||||
// (common in self-hosted setups). websocket-first shaves connect time when
|
||||
// it works but silently breaks real-time updates where the proxy blocks WS.
|
||||
transports: ['polling', 'websocket'],
|
||||
reconnection: true,
|
||||
reconnectionAttempts: Infinity,
|
||||
reconnectionDelay: 1000,
|
||||
|
|
|
|||
Loading…
Reference in a new issue