Function postMessage
- post
Message (message, transfer): void Parameters
- message: any
- transfer: Transferable[]
Returns void
- post
Message (message, options?): void Parameters
- message: any
Optional
options: StructuredSerializeOptions
Returns void
Optional
options: StructuredSerializeOptions
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