API reference › @evolu/web › createSharedWorkerSelf

function createSharedWorkerSelf<Input, Output = never>(
  nativeSelf: SharedWorkerGlobalScope,
): SharedWorkerSelf<Input, Output>;

Defined in: packages/web/src/Worker.ts:187

Creates an Evolu SharedWorkerSelf from a Web SharedWorkerGlobalScope (self inside a shared worker).

Disposing closes the shared worker scope for all connected clients. Browsers never pass a shared worker's uncaught errors to its pages; see addUncaughtErrorListener.