# datachannel-client

> Reliable signaling implementation for DataChannel.js

Latest version **1.0.2** (published 2014-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install datachannel-client
pnpm add datachannel-client
yarn add datachannel-client
bun add datachannel-client
```

## Health

**Score 5/100 (F)** — status: abandoned.

Warnings: low downloads; no types; no esm support; has vulnerabilities.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-11-24 |
| First published | 2014-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 1 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Muaz Khan |
| Maintainers | muaz-khan |
| Keywords | webrtc, signaler, signaling, reliable, javascript, datachannel, webrtc-experiment, muaz, muaz-khan |

## Links

- npm: https://www.npmjs.com/package/datachannel-client
- Repository: https://github.com/muaz-khan/Reliable-Signaler
- Homepage: https://github.com/muaz-khan/WebRTC-Experiment/blob/master/DataChannel
- Issues: https://github.com/muaz-khan/Reliable-Signaler/issues
- npm.io page: https://npm.io/package/datachannel-client

## Dependencies (2)

- [socket.io](https://npm.io/package/socket.io.md) 0.9.x
- [reliable-signaler](https://npm.io/package/reliable-signaler.md) 1.0.2

## Recent versions

- 1.0.2 (latest) — 2014-11-24
- 1.0.1 — 2014-11-23
- 1.0.0 — 2014-11-21

## README

# [DataChannel.js](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/DataChannel) client using [Reliable Signaler](https://github.com/muaz-khan/Reliable-Signaler)

[![npm](https://img.shields.io/npm/v/datachannel-client.svg)](https://npmjs.org/package/datachannel-client) [![downloads](https://img.shields.io/npm/dm/datachannel-client.svg)](https://npmjs.org/package/datachannel-client)

It is a node.js and socket.io based reliable signaling implementation for [DataChannel.js](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/DataChannel).

```
# 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:

* https://github.com/muaz-khan/Reliable-Signaler/tree/master/datachannel-client

## License

[datachannel-client](https://www.npmjs.org/package/datachannel-client) is released under [MIT licence](https://www.webrtc-experiment.com/licence/) . Copyright (c) [Muaz Khan](https://plus.google.com/+MuazKhan).

---
_Source: https://npm.io/package/datachannel-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
