MCPcopy Create free account
hub / github.com/andywer/threads.js / postMessageToMaster

Method postMessageToMaster

src/types/worker.ts:5–5  ·  view source on GitHub ↗
(message: any, transferList?: Transferable[])

Source from the content-addressed store, hash-verified

3export interface AbstractedWorkerAPI {
4 isWorkerRuntime(): boolean
5 postMessageToMaster(message: any, transferList?: Transferable[]): void
6 subscribeToMasterMessages(onMessage: (data: any) => void): UnsubscribeFn
7}
8

Callers 6

postFunctionInitMessageFunction · 0.80
postModuleInitMessageFunction · 0.80
postJobErrorMessageFunction · 0.80
postJobResultMessageFunction · 0.80
postJobStartMessageFunction · 0.80
postUncaughtErrorMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected