Skip to main content
method Worker.prototype.postMessage
Worker.prototype.postMessage(
value: any,
transferList?: readonly TransferListItem[],
): void
Deprecated

Send a message to the worker that is received via require('node:worker_threads').parentPort.on('message'). See port.postMessage() for more details.

Parameters

value: any
optional
transferList: readonly TransferListItem[]

Return Type

void
Back to top