I would like to send additional headers from javascript socket.io client when socket connection is being established with XHR to the server.
Actually, I'm trying to send PHPSESSID from the current page to the socket.io/nodejs server via javascript to check whether user is loggedin in the php application.
I've read this thread, and I'm using this technique to send additional data to the server via query parameters. But I would like to know whether it is possible to send it as headers instead of sending it in query string.
Thank You