Device Stats


Overview

In this exercise you will:

  1. Establish a secure WebSocket connection to the Mist cloud.
  2. Subscribe to WebSocket updates for device statistics.
  3. Display the device updates as they are received.

The following endpoint is used for all secure WebSocket connections:

  • wss://api-ws.mist.com/api-ws/v1/stream
Channel Documentation
/sites/:site_id/stats/devices https://api.mist.com/api/v1/docs/Site#device-stats

Mist Web UI

Navigate to Access Points and observe the device statistics update as new data flows into the Mist cloud.


Exercise

Run the following exercise to establish a WebSocket connection and receive updates for each Access Point: