Subscribe again to receive messages

This commit is contained in:
Matias Pando 2014-09-05 16:17:54 -03:00
parent bd2035eac9
commit 6fa1005615
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,9 @@ Network.prototype._setupConnectionHandlers = function(cb) {
self.socket.on('connect', 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();