working towards refactoring network

This commit is contained in:
Manuel Araoz 2014-08-12 16:41:45 -04:00
commit 3ebacd50cc
5 changed files with 70 additions and 57 deletions

View file

@ -255,7 +255,7 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
});
self.network.start(opts, function() {
self.network.connectTo(s.pubKey);
self.network.greet(s.pubKey);
self.network.on('data', function(sender, data) {
if (data.type === 'walletId') {