修改监听disconnect的方法
This commit is contained in:
parent
750d56f118
commit
9adba76246
@ -291,8 +291,8 @@ export class BlockChain {
|
||||
})
|
||||
|
||||
// Subscribe to session disconnection
|
||||
this.provider.on('disconnect', (code: number, reason: string) => {
|
||||
console.log('disconnect', code, reason)
|
||||
this.provider.on('disconnect', (err: any) => {
|
||||
console.log('disconnect', err)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user