peer-exchange
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -178,2 +178,10 @@ 'use strict'; | ||
Exchange.prototype.unaccept = function (transport, cb) { | ||
var _this5 = this; | ||
cb = cb || function (err) { | ||
if (err) _this5._error(err); | ||
}; | ||
if (!this._accepts[transport]) { | ||
return cb(new Error('Not accepting connections with "' + transport + '" transport')); | ||
} | ||
var _iteratorNormalCompletion2 = true; | ||
@@ -207,11 +215,11 @@ var _didIteratorError2 = false; | ||
if (unaccept) unaccept(); | ||
if (cb) cb(); | ||
cb(); | ||
}; | ||
Exchange.prototype.addPeer = function (peer) { | ||
var _this5 = this; | ||
var _this6 = this; | ||
peer._onReady(function () { | ||
_this5.peers.push(peer); | ||
_this5.emit('peer', peer); | ||
_this6.peers.push(peer); | ||
_this6.emit('peer', peer); | ||
}); | ||
@@ -218,0 +226,0 @@ }; |
{ | ||
"name": "peer-exchange", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Decentralized peer discovery and signaling", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92546
931