window.kaolin
    Preparing search index...

    Function encodeMessage

    • Encode a tagged message for transport over the websocket / Dash bridge.

      Returns a Promise when binary is true (image bytes inside Blobs are resolved asynchronously via toBinary). The JSON path stays sync.

      Parameters

      • tag: string
      • content: any
      • binary: boolean = true

      Returns Promise<string | ArrayBuffer>