API reference › @evolu/web › createOneTabSharedWorkerSelfPolyfill

function createOneTabSharedWorkerSelfPolyfill<Input, Output = never>(
  nativeSelf: DedicatedWorkerGlobalScope,
): SharedWorkerSelf<Input, Output>;

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

Creates a one-tab SharedWorkerSelf polyfill for browsers without native SharedWorker support.

Delivers one synthetic onConnect port, queues startup messages until onMessage is set, and does not share state across tabs.