Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created March 31, 2011 20:30
Show Gist options
  • Save 3rd-Eden/897196 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/897196 to your computer and use it in GitHub Desktop.
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