From 39d34ea53f10a2091c3aabe15b3dab1063bbd8a5 Mon Sep 17 00:00:00 2001 From: Ryan Liu Date: Tue, 5 Mar 2013 19:00:26 -0500 Subject: [PATCH] capitalized eio, added a comment saying that the protocol is an int, not a string --- lib/socket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket.js b/lib/socket.js index 975b69f4..8850f8df 100644 --- a/lib/socket.js +++ b/lib/socket.js @@ -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.