Interface: SyncEngineHandle
Defined in: types.ts:215
Methods
on()?
optional on(event, handler): () => void;
Defined in: types.ts:226
Structural subscription, narrowed to the one event the provider acts on.
@rasd/sync emits licenseRefreshed when a response header carries a
renewed token, and @rasd/license has setToken to accept one — and
before this, nothing in the repo connected them. A server that renewed a
subscription had the new token dropped on the floor, so a paying customer
still fell to limited when the old one expired.
Parameters
| Parameter | Type |
|---|---|
event | "licenseRefreshed" |
handler | (payload) => void |
Returns
() => void
syncNow()?
optional syncNow(): Promise<unknown>;
Defined in: types.ts:216
Returns
Promise<unknown>