Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 457 Bytes

File metadata and controls

13 lines (9 loc) · 457 Bytes

Disconnect

Event emitted upon the wallet losing connection to the RPC provider.

This is not a user "disconnecting" from a dapp, or otherwise revoking access between the dapp and the wallet.

 window.ethereum.on('disconnect', () => {
      console.log('lost connection to the rpc)
});

You can see an example of hooking into this event in our sandbox.