In the third version of ExpressJS express.createServer() changed to express() this changes makes difficult to bind socket.io on a same port. Maybe somebody could find robust decision.
Now, this doesn't work:
var express = require('express')
, app = express.createServer()
, io = require('socket.io').listen(app);
My current workflow: https://gist.github.com/3596852
See Question&Answers more detail:os