mirror of https://github.com/BTCPrivate/copay.git
Subscribe again to receive messages
This commit is contained in:
parent
bd2035eac9
commit
6fa1005615
|
@ -235,7 +235,9 @@ Network.prototype._setupConnectionHandlers = function(cb) {
|
||||||
self.socket.on('connect', function() {
|
self.socket.on('connect', function() {
|
||||||
|
|
||||||
self.socket.on('disconnect', function() {
|
self.socket.on('disconnect', function() {
|
||||||
self.cleanUp();
|
//self.cleanUp();
|
||||||
|
var pubKey = self.getKey().public.toString('hex');
|
||||||
|
self.socket.emit('subscribe', pubKey);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (typeof cb === 'function') cb();
|
if (typeof cb === 'function') cb();
|
||||||
|
|
Loading…
Reference in New Issue