I\'m trying to use Socket.io with Node.js and emit to a socket within the logic of a route.
I have a fairly standard Express 3 setup with a server.js file that sits
module.parent.exports.server would also work if you exported server in the parent module.
module.parent.exports.server