node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

webcdn-coordinator

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