Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF-3079] state.js: disconnect websocket for window "pagehide" event (…
…#3540) All major browser use a "bfcache" to freeze pages when navigating away from the domain, then they restore the page when going back. However if the page uses websockets, these get kind of stuck unless you disconnect them before freezing (and have a mechanism for reconnecting, which we already do). Ref: https://web.dev/articles/bfcache Fix #3478
- Loading branch information