Nothing special is required, you can use the same port for Socket.IO and express.
eg. in my project, I am doing something like this:
var express = require('express'); var io = require('socket.io'); var app = express(); var server = http.createServer(app).listen(SERVER_PORT, function() { console.log('Express server listening on port ' + SERVER_PORT); });
AFAIK is also an example with an expression on the Socket.IO wiki.
source share