mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
capitalized eio, added a comment saying that the protocol is an int, not a string
This commit is contained in:
@@ -60,7 +60,7 @@ function Socket(uri, opts){
|
||||
location.port :
|
||||
(this.secure ? 443 : 80));
|
||||
this.query = opts.query || {};
|
||||
this.query.eio = parser.protocol;
|
||||
this.query.EIO = parser.protocol; // this is an int, not a string
|
||||
this.upgrade = false !== opts.upgrade;
|
||||
this.path = (opts.path || '/engine.io').replace(/\/$/, '') + '/';
|
||||
this.forceJSONP = !!opts.forceJSONP;
|
||||
@@ -89,7 +89,7 @@ Emitter(Socket.prototype);
|
||||
* @api public
|
||||
*/
|
||||
|
||||
Socket.protocol = parser.protocol;
|
||||
Socket.protocol = parser.protocol; // this is an int
|
||||
|
||||
/**
|
||||
* Static EventEmitter.
|
||||
|
||||
Reference in New Issue
Block a user