Skip to content

SharedWorkerUpdateMessagePort

Defined in: web-worker/common/worker-schema.ts:197

  • any

new SharedWorkerUpdateMessagePort(): SharedWorkerUpdateMessagePort

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