Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webrtc-swarm

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-swarm - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

3

index.js

@@ -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, {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc