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.
Promise
binary
Encode a tagged message for transport over the websocket / Dash bridge.
Returns a
Promisewhenbinaryis true (image bytes inside Blobs are resolved asynchronously via toBinary). The JSON path stays sync.