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 would have to do a tutorial, for example a space "Optimize socket.io 4.x to behave like socket.io 2.x" and put the parameters like closeOnBeforeunload to false instead of true, and other things.
Platform:
Device: Firefox 91.0.2
OS: Windows 7 (x64)
The text was updated successfully, but these errors were encountered:
Silently closing the connection when receiving a "beforeunload" event
is problematic, because it is emitted:
- when downloading a file from another host
Related: socketio/socket.io#4436
- when the user already has a listener for the "beforeunload" event
(i.e. "are you sure you want to leave this page?")
Related:
- #661
- #658
- socketio/socket.io#4065
That's why the `closeOnBeforeunload` option will now default to false.
Describe the bug
Customer parameter closeOnBeforeunload by default it is true, should be false
To Reproduce
Please fill the following code example:
Socket.IO server and client version:
4.1.3
Read my post here #4040 (comment)
We would have to do a tutorial, for example a space "Optimize socket.io 4.x to behave like socket.io 2.x" and put the parameters like closeOnBeforeunload to false instead of true, and other things.
Platform:
The text was updated successfully, but these errors were encountered: