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

ws.close should clear pending setTimeout #46

Closed
spereirag opened this issue Apr 18, 2019 · 1 comment · Fixed by #48
Closed

ws.close should clear pending setTimeout #46

spereirag opened this issue Apr 18, 2019 · 1 comment · Fixed by #48

Comments

@spereirag
Copy link

If I call ws.close while there's a reconnection setTimeout pending, sockette still tries to reconnect after the timer finishes. I don't think this is the expected behavior, especially when you try to close the websocket after a connection failure, as it keeps trying to reconnect and failing.

@maxime-guyot
Copy link
Contributor

+1

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

Successfully merging a pull request may close this issue.

2 participants