You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have had got very annoying floating bug with socket.io long-polling, which was stable reproduced with selenium tests in Chrome on Linux host, and all works well on windows host. Sometimes Chrome with no obvious reason want to freeze page, and so beforeunload triggered, so app is broken after that.
How about this one? It use pagehide when available, will correctly terminate connections on unload, and also not break things when beforeunload was cancelled.
You want to:
Current behaviour
Polling transport breaks every time after
beforeunload
triggered, even if page wasn't closed after event have have has handed.Setup
Other information
It should be replaced at least to
unload
or betterpagehide
event (which one is good supported - 93%)We have had got very annoying floating bug with socket.io long-polling, which was stable reproduced with selenium tests in Chrome on Linux host, and all works well on windows host. Sometimes Chrome with no obvious reason want to freeze page, and so
beforeunload
triggered, so app is broken after that.Here some related info:
Page lifecycle api:
PageTransitionEvent browsers support
The text was updated successfully, but these errors were encountered: