API reference@evolu/web › createSharedWorkerSelf

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

Defined in: Worker.ts:80

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

Disposing closes the shared worker scope for all connected clients.