Skip to content

SharedWorkerUpdateMessagePort

Defined in: packages/@livestore/adapter-web/src/web-worker/common/worker-schema.ts:195

  • object

new SharedWorkerUpdateMessagePort(_): SharedWorkerUpdateMessagePort

Defined in: node_modules/.pnpm/effect@4.0.0-beta.99/node_modules/effect/dist/unstable/rpc/Rpc.d.ts:66

never

SharedWorkerUpdateMessagePort

Rpc.make('UpdateMessagePort', { payload: { port: Transferable.MessagePort, // Version gate to prevent mixed LiveStore builds talking to the same SharedWorker liveStoreVersion: Schema.Literal(liveStoreVersion), /** * Initial configuration for the leader worker. This replaces the previous * two-phase SharedWorker handshake and is sent under the tab lock by the * elected leader. Subsequent calls can omit changes and will simply rebind * the port (join) without reinitializing the store. */ initial: LeaderWorkerInnerInitialMessage.payloadSchema, }, success: Schema.Void, error: UnknownError, }).constructor