Function postMessage
- postMessage(message: any, transfer: Transferable[]): void
Parameters
- message: any
- transfer: Transferable[]
Returns void
- postMessage(message: any, options?: StructuredSerializeOptions): void
Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
Parameters
- message: any
Optional
options: StructuredSerializeOptions
Returns void
Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
MDN Reference