|
@@ -116,7 +116,7 @@ Peer.prototype._retrieveId = function(cb) {
|
|
var self = this;
|
|
var self = this;
|
|
var http = new XMLHttpRequest();
|
|
var http = new XMLHttpRequest();
|
|
var protocol = this.options.secure ? 'https://' : 'http://';
|
|
var protocol = this.options.secure ? 'https://' : 'http://';
|
|
- var url = protocol + this.options.host + ':' + this.options.port + '/' + this._fullPath() + this.options.key + '/id';
|
|
|
|
|
|
+ var url = protocol + this.options.host + ':' + this.options.port + this.options.path + this.options.key + '/id';
|
|
var queryString = '?ts=' + new Date().getTime() + '' + Math.random();
|
|
var queryString = '?ts=' + new Date().getTime() + '' + Math.random();
|
|
url += queryString;
|
|
url += queryString;
|
|
|
|
|
|
@@ -237,10 +237,6 @@ Peer.prototype._handleMessage = function(message) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-Peer.prototype._fullPath = function() {
|
|
|
|
- return this.options.path ? this.options.path + '/' : '';
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/** Stores messages without a set up connection, to be claimed later. */
|
|
/** Stores messages without a set up connection, to be claimed later. */
|
|
Peer.prototype._storeMessage = function(connectionId, message) {
|
|
Peer.prototype._storeMessage = function(connectionId, message) {
|
|
if (!this._lostMessages[connectionId]) {
|
|
if (!this._lostMessages[connectionId]) {
|