WalletConnectRust icon indicating copy to clipboard operation
WalletConnectRust copied to clipboard

Emit `Disconnect` event properly on connection reset without handshake

Open Rakowskiii opened this issue 2 years ago • 0 comments

The websocket relay client will currently only emit Error event when the connection is finished not gracefully. It should also emit Disconnected otherwise consumer may think the connection is intact, while in fact it's dead.

This is what happens currently (e.g. when relay is redeployed)

[cast-client] inbound error: Websocket client error: Websocket transport error: WebSocket protocol error: Connection reset without closing handshake

Rakowskiii avatar Jun 20 '23 12:06 Rakowskiii