Secure WebSocket Protocol connections for notifications

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

A secure WebSocket Protocol 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 handshake part of the WebSocket Protocol uses HTTPS, so there is no need to open a new port on the switch side, and there is no need to provide a new authentication mechanism. When you connect to a switch through a secure WebSocket Protocol connection, you pass the session cookie received from logging in to the REST API. Secure WebSocket Protocol connections to switches running AOS-CX software remain active until the connection is closed, even after the session cookie expires. Multiple clients and connections are supported.

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

https://tools.ietf.org/html/rfc6455