socket.io and express session solution This example show how to use socket.io with express.js 4 and handle session. It's answer for stackoverflow question. To run example just simply run $ npm install $ npm start and navigate to http://127.0.0.1:8888/.