STUN/TURN in default config

This commit is contained in:
Manuel Araoz 2014-05-05 15:54:17 -03:00
commit 33e824a64c
2 changed files with 21 additions and 14 deletions

View file

@ -28,11 +28,8 @@ function Network(opts) {
mode:'ccm',
ts:parseInt(64),
};
// For using your own peerJs server
self.opts = {};
['port', 'host', 'path', 'debug', 'key'].forEach(function(k) {
this.opts = {};
['config', 'port', 'host', 'path', 'debug', 'key'].forEach(function(k) {
if (opts[k]) self.opts[k] = opts[k];
});
this.cleanUp();