webcdn-coordinator
v0.0.12
Published
A simple websockets server for WebRTC-signaling of the webcdn system
Maintainers
Readme
WebCDN Coordinator
Coordinator server for a browser-based content distribution network using WebRTC
Installation
npm install webcdn-coordinatorQuickstart
$ 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 1200API
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