Links

Disconnect website message

Message ID: disconnect
Overview
Developers can monitor this message for connection changes. This message is generated when:
  1. 1.
    The DApp requests a connection, and the user rejects the connection in the pop-up window
  2. 2.
    Users disconnect from the website
Specification
Example
window.addEventListener('message', function (e) {
if (e.data.message && e.data.message.action == "disconnect") {
// handler logic
console.log('got connect event', e.data)
}
})