Disconnect

// Some code
window.bw.on('disconnect', ({ address: string }) => {
    console.log('lost connection to the rpc')
})

window.bw.put.on('disconnect', ({ address: string }) => {
    console.log('lost connection to the rpc')
})

Last updated