So I have an application running node js with socket.io as a backend and normal javascript as frontend. My application has a login system which currently simply has the clie
For socket.io v1.2.1 use this:
io.use(function (socket, next) { var handshake = socket.handshake; console.log(handshake.query); next(); });