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

Fix connect method not throwing on failure #49

Merged
merged 11 commits into from
Apr 7, 2021

Conversation

Shiranuit
Copy link
Contributor

What does this PR do ?

This PR fixes the connect method of the WebSocket protocol by making it throw when the connection has failed.

Enhancements:

Avoid recursion in tryToReconnect
Avoid spawning N threads when trying to reconnect
Avoid triggering a networkStateChange CLOSE event when the reconnection is successful

@Shiranuit Shiranuit merged commit 6f4de8d into 1-dev Apr 7, 2021
@Shiranuit Shiranuit deleted the 48-fix-connect-not-throwing branch April 7, 2021 15:41
@Shiranuit Shiranuit mentioned this pull request Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect method doesn't throw on connection failed
3 participants