Wactorz JS
    Preparing search index...

    Class WSChatClient

    Index

    Constructors

    Accessors

    Methods

    • Send a chat message over the WebSocket. Returns false when the socket is not open (caller can fall back to MQTT).

      Parameters

      • content: string

      Returns boolean

    • Send any raw JSON object over the WebSocket (e.g. agent commands). Returns false when the socket is not open.

      Parameters

      • msg: object

      Returns boolean