Retries to connect to websocket if connection is lost. You can replicate losing the websocket connection by waiting (usually less than 5 minutes), or by killing the network from the network tab in the browser's devtool.
I can easily replicate losing the relayer connection by just waiting some minutes, this was surely the source of many bugs.
๐ Description
I can easily replicate losing the relayer connection by just waiting some minutes, this was surely the source of many bugs.
src/store/web3wallet.store.ts
โ Context
Linked resource(s): LIVE-12649
Wallet connect documentation on relayer event listeners: https://docs.walletconnect.com/web3wallet/best_practises#web-socket-connection-state
๐ง : Flow example when connection is lost / re-activated: https://docs.walletconnect.com/web3wallet/best_practises#connection-state
๐ธ Demo
BEFORE:
https://github.com/LedgerHQ/wallet-connect-live-app/assets/5050709/41025734-acb3-410a-a463-dcd9fe4b9efe
AFTER:
https://github.com/LedgerHQ/wallet-connect-live-app/assets/5050709/1d69c365-e316-4c58-82dd-056956aa67ad
๐ Expectations to reach
Pull Requests must pass the CI and be internally validated in order to be merged.