I know that I can use
function(req, res) { req.session }
using express. However I need to access the session outside of the response func
Assuming your socket.io code looks kinda like this:
io.on('connection', function(client) { console.log(client.request) });
The request is client.request as shown in the example above.
client.request
Edit: As a separate thing, maybe this would help: https://github.com/aviddiviner/Socket.IO-sessions