Skip to content

SyncBackendOptions

Defined in: packages/@livestore/sync-electric/src/index.ts:108

endpoint: string | { ping: string; pull: string; push: string; }

Defined in: packages/@livestore/sync-electric/src/index.ts:117

The endpoint to pull/push events. Pull is a GET request, push is a POST request. Usually this endpoint is part of your API layer to proxy requests to the Electric server e.g. to implement auth, rate limiting, etc.

"/api/electric"
{ push: "/api/push-event", pull: "/api/pull-event" }

optional ping: object

Defined in: packages/@livestore/sync-electric/src/index.ts:125

optional enabled: boolean

true

optional requestInterval: DurationInput

How often to send ping requests

10 seconds

optional requestTimeout: DurationInput

How long to wait for a ping response before timing out

10 seconds