DISCONNECTED
On a DISCONNECTED event, the account connected to the dapp via the dapi provider has been disconnected (logged out).
Example
neoline.addEventListener(neoline.EVENT.DISCONNECTED, () => {
console.log('dAPI public method loading is complete.');
});
/* Another */
window.addEventListener('NEOLine.NEO.EVENT.DISCONNECTED', () => {
console.log('dAPI public method loading is complete.');
});
最后更新于
这有帮助吗?