web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[feature] Provide visual feedback for relay connected/disconnected events

Open bkrem opened this issue 4 months ago • 1 comments

What problem does this new feature solve?

Web3Modal currently doesn't communicate websocket connected/disconnected states to the end user, creating ambiguity when e.g. a QR code is scanned but nothing happens on the wallet (e.g. because the dapp lost or shutdown its WS connection)

Describe the solution you'd like

  • Listening for the relayer's RELAYER_EVENTS.connect and RELAYER_EVENTS.disconnect events (docs, example usage)
  • Showing a toast or other temporary notification item immediately, that lets the user know that they are no longer connected or are connected again

bkrem avatar Feb 21 '24 09:02 bkrem

cc @ganchoradkov

bkrem avatar Feb 21 '24 09:02 bkrem