Socket
Socket
Sign inDemoInstall

webrtc.io-client

Package Overview
Dependencies
0
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webrtc.io-client

Drop-in client code for webrtc.io


Version published
Weekly downloads
3
increased by50%
Maintainers
3
Install size
10.3 kB
Created
Weekly downloads
 

Readme

Source

webrtc.io

A library that is to webRTC like socket.io is to WebSockets.

This will eventually be bundled with the server code.

Installation

Currently, webrtc.io depends on socket.io, so include the socket.io client as well. After including socket.io-client, drop in lib/io.js. You'll also need a webrtc.io server running.

Now you can start using webRTC commands with our abstraction.

Usage

rtc.createStream({"video": true, "audio":true}, function(stream){
  // get local stream for manipulation
}
rtc.connect('ws://yourserveraddress:8001', optionalRoom);
//then a bunch of callbacks are available

You can set the STUN server by calling rtc.SERVER = "STUN stun.l.google.com:19302" and set your server. The default STUN server used by the library is one from google.

Keywords

FAQs

Last updated on 19 Nov 2012

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc