Skip to content

Commit

Permalink
remove uid qs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgil committed Feb 16, 2013
1 parent cdca3b6 commit 04b3da0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
11 changes: 0 additions & 11 deletions engine.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ function Socket(uri, opts){
location.port :
(this.secure ? 443 : 80));
this.query = opts.query || {};
this.query.uid = rnd();
this.upgrade = false !== opts.upgrade;
this.path = (opts.path || '/engine.io').replace(/\/$/, '') + '/';
this.forceJSONP = !!opts.forceJSONP;
Expand Down Expand Up @@ -1185,16 +1184,6 @@ Socket.prototype.filterUpgrades = function (upgrades) {
return filteredUpgrades;
};

/**
* Generates a random uid.
*
* @api private
*/

function rnd () {
return String(Math.random()).substr(5) + String(Math.random()).substr(5);
}

});
require.register("engine.io/lib/transport.js", function(module, exports, require){

Expand Down
13 changes: 1 addition & 12 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function Socket(uri, opts){
location.port :
(this.secure ? 443 : 80));
this.query = opts.query || {};
this.query.uid = rnd();
this.upgrade = false !== opts.upgrade;
this.path = (opts.path || '/engine.io').replace(/\/$/, '') + '/';
this.forceJSONP = !!opts.forceJSONP;
Expand Down Expand Up @@ -512,14 +511,4 @@ Socket.prototype.filterUpgrades = function (upgrades) {
if (~this.transports.indexOf(upgrades[i])) filteredUpgrades.push(upgrades[i]);
}
return filteredUpgrades;
};

/**
* Generates a random uid.
*
* @api private
*/

function rnd () {
return String(Math.random()).substr(5) + String(Math.random()).substr(5);
}
};

0 comments on commit 04b3da0

Please sign in to comment.