I set up socket.io together with redis. In a different file (doSomething.js) I try accessing the original io variable to emit a message. doSomething.js
doSomething.js