SyncBackendOptions
Defined in: packages/@livestore/sync-electric/src/index.ts:168
Properties
Section titled “Properties”endpoint
Section titled “endpoint”endpoint:
string| {pull:string;push:string; }
Defined in: packages/@livestore/sync-electric/src/index.ts:177
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.
Examples
Section titled “Examples”"/api/electric"{ push: "/api/push-event", pull: "/api/pull-event" }