Open connection
In a simplified form, opening a websocket using atmosphere-javascript looks like this:
var request = {
url: 'https://domain.com/event/subscription',
contentType: "application/json",
transport: 'websocket'
};
atmosphere.subscribe(request);
Executing this code will lead to send a request
ws://domain.com/event/subscription?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.3.6-javascript&X-Atmosphere-Transport=websocket&Content-Type=application/json&X-atmo-protocol=true
and upgrade the connection to websocket. After what will be sent a first frame through opened websocket channel:
b623a15d-9623-4fd8-a9d3-697036635c29|30000|X|
This is service message for the Atmosphere protocol negotiation. Now everything is ready to subscribe on events.