|
@@ -5,15 +5,15 @@ function Peer(options) {
|
|
options = util.extend({
|
|
options = util.extend({
|
|
debug: false,
|
|
debug: false,
|
|
host: 'localhost',
|
|
host: 'localhost',
|
|
- protocol: 'http',
|
|
|
|
config: { 'iceServers': [{ 'url': 'stun:stun.l.google.com:19302' }] },
|
|
config: { 'iceServers': [{ 'url': 'stun:stun.l.google.com:19302' }] },
|
|
port: 80
|
|
port: 80
|
|
}, options);
|
|
}, options);
|
|
this.options = options;
|
|
this.options = options;
|
|
util.debug = options.debug;
|
|
util.debug = options.debug;
|
|
|
|
|
|
|
|
+ // TODO: default should be the cloud server.
|
|
this._server = options.host + ':' + options.port;
|
|
this._server = options.host + ':' + options.port;
|
|
- this._httpUrl = options.protocol + '://' + this._server;
|
|
|
|
|
|
+ this._httpUrl = 'http://' + this._server;
|
|
this._config = options.config;
|
|
this._config = options.config;
|
|
|
|
|
|
// Ensure alphanumeric_-
|
|
// Ensure alphanumeric_-
|