WebSocket secure connections for notifications

You subscribe to and receive notifications from the switch through a WebSocket secure (wss://) connection.

A WebSocket secure connection is a secure, persistent, and full-duplex connection between a client and a server. Either the client or the server can send data in the form of messages at any time.

The connection is established through a WebSocket handshake. A WebSocket handshake is an HTTP upgrade request to use to the WebSocket secure protocol, which is done by sending an upgrade header in the HTTPS request. To connect to the ArubaOS-CX switch, you must also pass the session cookie received from logging in to the REST API.

WebSocket connections to switches running ArubaOS-CX software remain active until the connection is closed, even after the session cookie expires.

For more information about the WebSocket protocol see RFC 6455: The WebSocket Protocol at: