progressive reconnect time
This commit is contained in:
parent
be7e122b0a
commit
d0e20c1bff
7 changed files with 37 additions and 18 deletions
|
|
@ -126,12 +126,13 @@ Network.prototype._onClose = function(peerID) {
|
|||
Network.prototype.connectToCopayers = function(copayerIds) {
|
||||
var self = this;
|
||||
var arrayDiff= Network._arrayDiff(copayerIds, this.connectedCopayers());
|
||||
console.log('[WebRTC.js.128:arrayDiff:]',arrayDiff); //TODO
|
||||
|
||||
arrayDiff.forEach(function(copayerId) {
|
||||
if (this.allowedCopayerIds && !this.allowedCopayerIds[copayerId]) {
|
||||
this._deletePeer(this.peerFromCopayer(copayerId));
|
||||
} else {
|
||||
|
||||
console.log('[WebRTC.js.134] CONNECT TO', copayerId); //TODO
|
||||
self.connectTo(copayerId);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue