Skip to content

matchSyncRequest

matchSyncRequest(request): { payload?: Json; storeId: string; transport: "http" | "ws"; } | undefined

Defined in: packages/@livestore/sync-cf/src/cf-worker/shared.ts:147

Extracts the LiveStore sync search parameters from a request. Returns undefined when the request does not carry valid sync metadata so callers can fall back to custom routing.

Request

{ payload?: Json; storeId: string; transport: "http" | "ws"; } | undefined