capitalized eio, added a comment saying that the protocol is an int, not a string

This commit is contained in:
Ryan Liu
2013-03-05 19:00:26 -05:00
parent 99a4601dcf
commit 39d34ea53f

View File

@@ -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.