Skip to content

closeOnBeforeunload not working properly after upgrading to socketio v4.7.5 #5055

Discussion options

You must be logged in to vote

Hi! When setting closeOnBeforeunload: false, the Socket instance will indeed emit a disconnect event when the user reloads the page on Firefox.

Reference: https://socket.io/docs/v4/client-options/#closeonbeforeunload

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by darrachequesne
Comment options

You must be logged in to vote
1 reply
@darrachequesne
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants