I need to access variables declared in app.js using express 2 and node 0.8; i have the following code:
app.js
------
[.....]
var server = app.listen(3000);
var io = require('socket.io');
io.listen(server);
exports.io=io;
module.js
----------
var app=require("./app");
console.log(app.io);
but app.io is undefined ... what am i doing wrong?