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

    datachannel-client

Reliable signaling implementation for DataChannel.js


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Install size
16.5 MB
Created
Weekly downloads
 

Readme

Source

DataChannel.js client using Reliable Signaler

npm downloads

It is a node.js and socket.io based reliable signaling implementation for DataChannel.js.

# install
npm install datachannel-client

# run
node ./node_modules/datachannel-client/server.js

Now open localhost port:8080.

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/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:

License

datachannel-client is released under MIT licence . Copyright (c) Muaz Khan.

Keywords

FAQs

Last updated on 24 Nov 2014

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