Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sarmad36 opened this issue Jun 24, 2024 Discussed in #5055 · 0 comments
Open

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

sarmad36 opened this issue Jun 24, 2024 Discussed in #5055 · 0 comments

Comments

@sarmad36
Copy link

Discussed in #5055

Originally posted by sarmad36 June 23, 2024
With following configuration
this.socket = io({
closeOnBeforeunload: true,
reconnection: true,
reconnectionDelay: 100,
reconnectionDelayMax: 2000,
reconnectionAttempts: Infinity,
transports: ["polling"],
secure: true,
rejectUnauthorized: false,
forceNew: false,
timeout: 6000,
})

when I try to leave the page on Firefox the socket connection is disconnected and if I try to log the reason for disconnection it says " transport error "

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

No branches or pull requests

1 participant