I\'m trying to set a http header when socket.io client makes the connection request. Is there a way to do this?
Here is what i\'m doing:
// server si
This information has been deprecated since socket.io 1.0
There are two methods of authorization: global or namespace (think route). The global method is set on the server with the io.set('authorization', function (handshakeData, callback) configuration call.
The handshakeData object contains the following information:
{
headers: req.headers //
The above information and a deeper explanation is available on this documentation page.