New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rtc-patch-bay

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtc-patch-bay

"Multi-peer, adhoc routing built on simple-peer"

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

RTC Patch Bay

Module built on top of SimplePeer to handle ad-hoc connections with multiple peers. Uses a signaling server (patch-bay-server) to define a "room" or "channel" for connecting. Peers in the same room can choose to connect to all other peers in the same room (i.e. in a conference call), or can create and remove peer connections as needed.

Messages to other peers are sent via data channels when possible, or via websockets when a connection between to peers has not yet been established.

Options:

id: unique id for this user (if not supplied, will be generated)

peerOptions: default connection options to be sent to SimplePeer

room: room or channel name

stream: stream to share with peers

Methods:

ob.sendToAll(data)

Sends to all peers connected via WebRTC (NOT to all in room. See pb.broadcast())

Keywords

FAQs

Package last updated on 27 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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