Socket
Socket
Sign inDemoInstall

datachannel-client

Package Overview
Dependencies
15
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "datachannel-client",
"preferGlobal": true,
"version": "1.0.0",
"version": "1.0.1",
"author": "Muaz Khan <muazkh@gmail.com> (http://www.muazkhan.com/)",

@@ -35,3 +35,3 @@ "description": "Reliable signaling implementation for DataChannel.js",

"dependencies": {
"reliable-signaler": "1.0.0",
"reliable-signaler": "1.0.1",
"socket.io": "0.9.x"

@@ -38,0 +38,0 @@ },

@@ -17,2 +17,15 @@ # [DataChannel.js](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/DataChannel) client using [Reliable Signaler](https://github.com/muaz-khan/Reliable-Signaler)

# How it works?
1. You can store a room-id on server using `createNewRoomOnServer` method.
2. You can get that room-id using `getRoomFromServer` method.
# How to use?
1. In your Node.js server, invoke `require('reliable-signaler')` and pass HTTP-Server object.
2. In your HTML file, link this script: `/reliable-signaler/rtcmulticonnection-signaler.js`
3. In your `<script>` tag, invoke `initReliableSignaler` constructor.
4. Invoke `createNewRoomOnServer` method for room-moderator.
5. Invoke `getRoomFromServer` method from room-participants (multiple participants).
Source code of this demo is available here:

@@ -19,0 +32,0 @@

@@ -48,2 +48,4 @@ // Muaz Khan - www.MuazKhan.com

// npm install reliable-signaler
require('reliable-signaler')(app);
require('reliable-signaler')(app, {
path: '/reliable-signaler/datachannel-signaler.js'
});

Sorry, the diff of this file is not supported yet

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