Establishing a WebSocket secure connection through a web browser

Prerequisites
  • Access to the switch REST API must be enabled. The REST API access mode can be either read-only or read/write.

  • The web browser you use must support WebSockets.

Procedure
  1. Open a web browser page and log in to the switch Web UI or the REST API.

    The session cookie is managed by the browser and is shared among browser tabs.

  2. From a different tab in the same browser, open the page that contains the WebSocket interface.

    For example, many browsers have a plugin for WebSocket secure connections.

  3. Connect to the switch at the following URL:
    wss://<IP-ADDR>/rest/v1/notification
    

    <IP-ADDR> is the IP address of the switch.

    For example:

    wss://192.0.2.5/rest/v1/notification
    

After the connection is established, you can use the interface to send subscribe or unsubscribe messages and to view the responses and notification messages.