webrtc-swarm
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -21,3 +21,3 @@ var SimplePeer = require('simple-peer') | ||
swarm.emit('peer', peer, id) | ||
swarm.emit('connection', peer, id) | ||
swarm.emit('connect', peer, id) | ||
}) | ||
@@ -29,2 +29,3 @@ | ||
if (i > -1) swarm.peers.splice(i, 1) | ||
swarm.emit('disconnect', peer, id) | ||
}) | ||
@@ -31,0 +32,0 @@ |
{ | ||
"name": "webrtc-swarm", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Create a swarm of p2p connections using webrtc and a signalhub", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ # webrtc-swarm | ||
var hub = signalhub('http://yourdomain.com', 'swarm-example') | ||
var hub = signalhub('swarm-example', ['http://yourdomain.com']) | ||
@@ -19,0 +19,0 @@ var sw = swarm(hub, { |
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
4768
84