Message Flow


The sequence diagram below shows the message flow between the WebSocket client, Mist WebSocket server, and Mist AP:

sequenceDiagram
    participant C as WS Client
    participant M as Mist Cloud
    participant AP as Mist AP

    # websocket connection
    C->>+M: WebSocket Connection
    Note over M: User auth
    M->>-C: OK

    # websocket subscribe to channels
    C->>M: Subscribe "Topic 1"
    C->>M: Subscribe "Topic 2"
    C->>M: ...
    C->>M: Subscribe "Topic N"

    # publish websocket channel updates
    Note over AP: Device/Client<br/>Update
    AP->>M: Send stats
    M->>C: Stream to topic