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
1.4m articles
1.4m replys
5 comments
56.9k users