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
🔌 Silent WebSocket Disconnects #8
Comments
Closed
This may viable workaround:
|
The reconnection logic is now improved in v0.0.8. Thanks @bobwith2bees and @ghunkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
SocketTransport
handles disconnects (onError
oronDone
events) silently by marking itself as not connected. When these disconnects occur, aWalletConnectSession
appears to beconnected
but cannot send or receive messages.Impact
In
release
andprofile
mode, when a user puts the app into the background (i.e. to sign a message in their wallet app), the sockets get closed. On return, thesession
can't send or receive messages despite it lookingconnected
.Fix
Re-open the socket when
onError
andonDone
events are fired.I am opening a PR on this and will link it here.
The text was updated successfully, but these errors were encountered: