I want to set some user information in a cookie and be able to access it on connection, is this possible?
client.request.headers.cookie leads to race conditions as the cookie always points to the last logged in user.
client.request.headers.cookie
Please see: Socket.IO Authentication.