Skip to content

TypeScript API / laikacms/storage / SubscribeChangesOptions

Interface: SubscribeChangesOptions ​

Options for subscribeChanges.

This is the PUSH counterpart to the pull getSyncToken / listChanges feed: instead of polling, a listener is invoked as changes happen.

Properties ​

folder? ​

ts
optional folder?: string;

Scope the subscription to a folder; omit for the whole store.


since? ​

ts
optional since?: string & Brand<"SyncToken">;

A token previously obtained from the pull feed. Advisory: backends that only support live notifications (no historical replay) ignore it.

Released under the MIT License.