# peerjs-nodejs

> A peerjs client that works within nodejs apps

Latest version **1.1.3** (published 2018-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install peerjs-nodejs
pnpm add peerjs-nodejs
yarn add peerjs-nodejs
bun add peerjs-nodejs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-01-19 |
| First published | 2018-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | webmech |

## Links

- npm: https://www.npmjs.com/package/peerjs-nodejs
- Repository: https://github.com/web-mech/peerjs-nodejs
- Homepage: https://github.com/web-mech/peerjs-nodejs#readme
- Issues: https://github.com/web-mech/peerjs-nodejs/issues
- npm.io page: https://npm.io/package/peerjs-nodejs

## Dependencies (4)

- [ws](https://npm.io/package/ws.md) ^4.0.0
- [peerjs](https://npm.io/package/peerjs.md) git+https://github.com/web-mech/peerjs.git
- [xmlhttprequest](https://npm.io/package/xmlhttprequest.md) ^1.8.0
- [electron-webrtc](https://npm.io/package/electron-webrtc.md) ^0.3.0

## Recent versions

- 1.1.3 (latest) — 2018-01-19
- 1.1.2 — 2018-01-19
- 1.1.1 — 2018-01-19
- 1.1.0 — 2018-01-19

## README

# peerjs-nodejs

A peerjs client that works within nodejs apps

## Usage

```
const peerJs = require('peerjs-nodejs');

const peer = peerJs({ key: 'abcxyz' });
//or
const peer = peerJs(id, { ...options });
```

### A word on connections

Binary data serialization currently isn't supported with the current dependencies. ( probably still possible, just not as is). You must set the connection serialization to either `none` or `json`

See Documentation:

http://peerjs.com/docs/#dataconnection-serialization

```
let conn = peer.connect('foo');
conn.serialization = 'json';
conn.send({ value: 'hello' });
```

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