API reference@evolu/commonWorker › createSharedWorker

function createSharedWorker<Input, Output>(
  initWorker: (self: SharedWorkerSelf<Input, Output>) => void,
): SharedWorker<Input, Output>;

Defined in: packages/common/src/Worker.ts:225

Creates an in-memory SharedWorker.

This is a memory-only fallback for platforms without native SharedWorker support. Connection is synchronous while message delivery is asynchronous in-process.

Intended usage is one shared worker instance per process/app runtime.