API reference › @evolu/common › Worker › SharedWorker
Defined in: packages/common/src/Worker.ts:30
Platform-agnostic SharedWorker.
A shared worker is shared across multiple clients (tabs, windows, iframes) and provides a port for bidirectional communication with each client.
See
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker
Extends
Extended by
Methods
[dispose]()
dispose: void;
Defined in: node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts:36
Inherited from
Disposable.[dispose]
Properties
port
readonly port: MessagePort<Input, Output>;
Defined in: packages/common/src/Worker.ts:32
Port for communicating with the shared worker.