postBridgeMessage
postBridgeMessage(
port,codec,type,payload,id?,transfer?):void
Defined in: packages/client/src/worker/protocol.ts:563
Send a typed message over a port: encode → post (with any transferables). The one write choke point.
transfer lets a caller declare payload-specific transferables (e.g. a store-backup’s ArrayBuffer,
ADR-0035) WITHOUT teaching the shared codec about that op — they are merged after any the codec itself
produces, so both the codec’s future zero-copy path and per-message transfers coexist.
Parameters
Section titled “Parameters”payload
Section titled “payload”unknown
string
transfer?
Section titled “transfer?”unknown[]
Returns
Section titled “Returns”void