Skip to content

Use reconnectedHandler in Tendermint #1200

@webmaster128

Description

@webmaster128

Looks like we closed #229 a bit too early. We now have ReconnectingSocket, which accepts a reconnectedHandler. However, this handler is never used.

What we need for iov-one/ponferrada#14 is clients that keep track of subsciptions they have. As soon as the socket reconnects, those subscriptions need to be recreated. This affects WebsocketClient from the Tendermint package and WsEthereumRpcClient.

This is needed for the browser extension to track transaction state after postTx. For Ethereum we use polling in this case, so this is lower priority. But in case of BNS, we use both transaction and block subscriptions in postTx, so this is needed for iov-one/ponferrada#14.

  1. Use reconnectedHandler in Tendermint (this ticket)
  2. Use reconnectedHandler in Ethereum (Use reconnectedHandler in Ethereum #1204)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions