Skip to content

Fix WebSocketTransport not kicking off reconnect strategy - #49

Merged
dsrees merged 2 commits into
masterfrom
dr/fix-reconnect-issues
May 14, 2019
Merged

Fix WebSocketTransport not kicking off reconnect strategy#49
dsrees merged 2 commits into
masterfrom
dr/fix-reconnect-issues

Conversation

@dsrees

Copy link
Copy Markdown
Owner

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 masterMay 14, 2019
@dsrees
dsrees deleted the dr/fix-reconnect-issues branch May 14, 2019 18:09
Sign up for freeto 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

@dsrees