Created
March 31, 2011 20:30
-
-
Save 3rd-Eden/897196 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var io = require('socket.io'); | |
io.Listener.prototype._onConnection = function(transport, req, res, httpUpgrade, head){ | |
this.options.log('Initializing client with transport "'+ transport +'"'); | |
var client = new transports[transport](this, req, res, this.options.transportOptions[transport], head); | |
this.server.handle(req,{writeHead:null}, function(){ | |
client.session = req.session; | |
}) | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment