Intermact API Reference / @intermact/render-three / createWorkerComputeClient
Function: createWorkerComputeClient()
createWorkerComputeClient(
worker):ComputeClient
Defined in: worker/client.ts:53
Wrap a Worker (running handleComputeMessages) as a ComputeClient. Requests are correlated by a monotonic id; results stream back as responses. The host owns Worker construction (bundler-specific, e.g. new Worker(new URL("./entry", import.meta.url), { type: "module" })).