I have a unique session id that I put in each request.session (with express) and I also use socket.io, where the 'connection' event is fired asynchronously and besides, the socket stuff is configured regardless to routes. I just want to store this session id of mine inside each socket that connects to server.
How do I bind these two things? I saw solutions that do that but they used default session ids by express and that's not the case here. (because I need first to have my first request from client handled first)