I want to set some user information in a cookie and be able to access it on connection, is this possible?
Using Socket.IO 0.8.7, you can access request headers via:
socket.handshake.headers
You can find more detail on this at https://github.com/LearnBoost/socket.io/wiki/Authorizing
2.1m questions
2.1m answers
60 comments
57.0k users