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 WebSocketTransport not kicking off reconnect strategy #49

Merged
merged 2 commits into from
May 14, 2019

Conversation

dsrees
Copy link
Owner

@dsrees dsrees commented May 14, 2019

The WebSocketTransport always errored whenever connectivity was lost, never properly closing the Socket, thus never kicking off the reconnect behavior. OkHttp throws EOFException if the server closes unexpectedly and a SocketException if the client loses connectivity. In both of these cases, make sure onClose is called to attempt to reconnect.

@dsrees dsrees merged commit 3179fae into master May 14, 2019
@dsrees dsrees deleted the dr/fix-reconnect-issues branch May 14, 2019 18:09
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.

1 participant