hypha-dao / hashed-wallet

Hashed Wallet
MIT License
3 stars 3 forks source link

Reliable reconnection #194

Open n13 opened 1 year ago

n13 commented 1 year ago

When the wallet gets disconnected, it does not reliably reconnect.

Particularly when the api object in the underlying Polkadot JS gets into a connection failure - 1006 mode, it fails to reconnect.

Solution: Isolate the connectivity stack further and recreate it more reliably.

We are already recreating the entire web view but it's either failing as well or not working in all situations.

Many other reports of the websocket dying https://github.com/polkadot-js/api/issues/2257

n13 commented 1 year ago

flutter: CONSOLE MESSAGE: 2023-02-23 06:09:07 API-WS: disconnected from wss://rpc.polkadot.io: 1006:: Abnormal Closure flutter: CONSOLE MESSAGE: 2023-02-23 06:09:07 RPC-CORE: health(): Health:: disconnected from wss://rpc.polkadot.io: 1006:: Abnormal Closure