trying to get past intermediate screen
This commit is contained in:
parent
7e286d88d8
commit
cae11776ac
3 changed files with 10 additions and 7 deletions
|
|
@ -199,14 +199,11 @@ Network.prototype._onMessage = function(enc) {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if (this.allowedCopayerIds && !this.allowedCopayerIds[payload.copayerId]) {
|
||||
this._deletePeer(sender);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TODO
|
||||
/*
|
||||
if (!this.copayerForPeer[sender] || (isInbound && !this.isInboundPeerAuth[sender])) {
|
||||
|
|
@ -215,6 +212,9 @@ Network.prototype._onMessage = function(enc) {
|
|||
}
|
||||
*/
|
||||
|
||||
|
||||
console.log('receiving '+JSON.stringify(payload));
|
||||
|
||||
var self = this;
|
||||
switch (payload.type) {
|
||||
case 'disconnect':
|
||||
|
|
@ -352,8 +352,7 @@ Network.prototype.send = function(copayerIds, payload, cb) {
|
|||
};
|
||||
var copayerIdBuf = new Buffer(copayerId, 'hex');
|
||||
var message = AuthMessage.encode(copayerIdBuf, self.getKey(), payload, opts);
|
||||
console.log(JSON.stringify(payload));
|
||||
console.log(JSON.stringify(message));
|
||||
console.log('sending '+JSON.stringify(payload));
|
||||
self.socket.emit('message', message);
|
||||
});
|
||||
if (typeof cb === 'function') cb();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue