peers-server
Version:
WebRTC full-mesh implementation for server side with socket.io written in Typescript
34 lines (28 loc) • 807 B
Markdown
Peers - WebRTC full mesh implementation.
This is full mesh topology WebRTC library. So, this library is not good at scallability, BUT server side can forcus handling of signaling.
- Room
- MediaStatus handling
- Signaling Handling
- 100% Written in Typescript
- Built with webpack you can use this library for Typescript and node.js both.
- Linted
- Simple API
- Embed Logger
- log4js
- socket.io
- uuid
`npm install peers-server`
```
const server = require('http').createServer();;
const Peers = require('peers-server').default;
const port = 3000;
server.listen(port, () => console.log("server started at:", port));
const peers = new Peers(server);
peers.setLogLevel('info');
peers.start();
```