Skip to content

Instantly share code, notes, and snippets.

@yields
Created May 24, 2013 19:09
Show Gist options
  • Save yields/5645826 to your computer and use it in GitHub Desktop.
Save yields/5645826 to your computer and use it in GitHub Desktop.
var Server = require('http').Server
, server = new Server();
server.on('connection', function(socket){
socket.on('readable', function(){
console.log('this will never be invoked!');
console.log('since `socket` has `ondata` method');
});
}).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment