webcdn-coordinator
v0.0.12
Published
A simple websockets server for WebRTC-signaling of the webcdn system
Downloads
4
Maintainers
Readme
WebCDN Coordinator
Coordinator server for a browser-based content distribution network using WebRTC
Installation
npm install webcdn-coordinator
Quickstart
$ npm install webcdn-coordinator
$ cd webcdn-coordinator
$ npm start [-- <args>]
| Options | Type | Default |
| -------------- |:-------------:| -----------:|
| uploadRatio
| Number | 1 |
| uploadMax
| Number | 10 (MB) |
| socketPort
| Number | 1337 |
Example
$ npm start -- --uploadMax 20 --socketPort 1200
API
Server
Exposed by require('webcdn-coordinator').
Server()
Creates a new Server
.
var coordinator = require('webcdn-coordinator')();
Tests
To run the test suite, first install the dependencies, then run npm test
.
$ npm install
$ npm test