|
@@ -1196,6 +1196,8 @@ Peer.prototype._getId = function(cb) {
|
|
|
try {
|
|
|
var http = new XMLHttpRequest();
|
|
|
var url = 'http://' + this._options.host + ':' + this._options.port + '/' + this._options.key + '/id';
|
|
|
+ var queryString = '?ts=' + new Date().getTime() + '' + Math.random();
|
|
|
+ url += queryString;
|
|
|
// If there's no ID we need to wait for one before trying to init socket.
|
|
|
http.open('get', url, true);
|
|
|
http.onreadystatechange = function() {
|