JavaScript jQuery API custom headers - Atmosphere/atmosphere GitHub Wiki

To send custom headers when creating a connection do like this:

var request = new atmosphere.AtmosphereRequest();
request.headers = {"custom-name": "custom-value"}

If the Atmosphere protocol is enabled the headers are also attached when the disconnect request is sent when closing the connection.