move blockchain event handles to wallet
This commit is contained in:
parent
7706a17416
commit
6944b9119b
2 changed files with 6 additions and 3 deletions
|
|
@ -124,7 +124,12 @@ Insight.prototype.requestPost = function(path, data, cb) {
|
|||
}
|
||||
|
||||
Insight.prototype.destroy = function() {
|
||||
this.getSocket().destroy();
|
||||
|
||||
console.log('[Insight.js.127] INSIGHT destroy' ); //TODO
|
||||
var socket = this.getSocket();
|
||||
this.socket.disconnect();
|
||||
this.socket.removeAllListeners();
|
||||
this.socket = null;
|
||||
this.subscribed = {};
|
||||
this.status = this.STATUS.DESTROYED;
|
||||
this.removeAllListeners();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue