Wactorz JS
    Preparing search index...

    Type Alias ChatHandler

    ChatHandler: (content: string, from: string, timestampMs: number) => void

    WSChatClient — lightweight wrapper around the monitor server's /ws endpoint.

    On connect the server sends: {"type":"config","chat_mode":"direct_ws"|"mqtt"}

    When chat_mode is "direct_ws" the browser should send chat messages here instead of publishing to MQTT io/chat. The server streams replies back as: {"type":"chat","from":"io-gateway","content":"...","timestamp":...}

    Type Declaration

      • (content: string, from: string, timestampMs: number): void
      • Parameters

        • content: string
        • from: string
        • timestampMs: number

        Returns void