datachannel-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
53172
1120
37
+ Addedreliable-signaler@1.0.1(transitive)
- Removedreliable-signaler@1.0.0(transitive)
Updatedreliable-signaler@1.0.1