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: only close open websocket on disconnect #193

Closed
wants to merge 1 commit into from
Closed

fix: only close open websocket on disconnect #193

wants to merge 1 commit into from

Conversation

tgrassl
Copy link

@tgrassl tgrassl commented Jun 5, 2023

Related to #183
When reconnecting-websocket encounters a timeout during the connecting phase, _disconnect wants to close the websocket. This results in the websocket error "WebSocket was closed before the connection was established" being thrown, because the websocket is still in the CONNECTING state.
This fix allows it to retry the connection after the timeout instead of throwing and ending the connection.

@tgrassl tgrassl closed this by deleting the head repository Nov 6, 2023
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 this pull request may close these issues.

3 participants