STUN/TURN in default config
This commit is contained in:
parent
d949b91a0d
commit
33e824a64c
2 changed files with 21 additions and 14 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue