API reference › @evolu/common › local‑first/Shared › PendingSyncRoute

Defined in: packages/common/src/local-first/Shared.ts:974

A route whose reconciliation has not ended: its transport is not open, a request or a received frame is outstanding, a replicated write is queued, or a round must still be sent through it.

Extends

Properties

completeAt

readonly completeAt:
  | number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThan281474976710655"> & Brand<"Millis">
  | null;

Defined in: packages/common/src/local-first/Shared.ts:993

When the route last became complete, or null.


failure

readonly failure:
  | SyncRouteError
  | null;

Defined in: packages/common/src/local-first/Shared.ts:982

The failure since the route last settled, or null. The first failure in a reply requests one round through the route; a later one, or a failure to create a round, waits for the next round another event requests, such as Evolu.requestSync or a reopen.


lastReceivedAt

readonly lastReceivedAt:
  | number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThan281474976710655"> & Brand<"Millis">
  | null;

Defined in: packages/common/src/local-first/Shared.ts:1000

When processing a frame from the route last finished, successfully or with a failure, or null.


lastSentAt

readonly lastSentAt:
  | number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThan281474976710655"> & Brand<"Millis">
  | null;

Defined in: packages/common/src/local-first/Shared.ts:995

When this database last sent a request through the route, or null.


skippedError

readonly skippedError:
  | SyncRouteError
  | null;

Defined in: packages/common/src/local-first/Shared.ts:991

The first change skipped in the latest reply that skipped one, or null. A change the relay offers is offered again in every round through the route until this database stores a change with that timestamp. A ProtocolChangeTooLargeError is a change this database stores but cannot send, which every route through a relay that lacks it skips on every sync.


transportId

readonly transportId: SyncTransportId;

Defined in: packages/common/src/local-first/Shared.ts:975


type

readonly type: "Pending";

Defined in: packages/common/src/Type.ts:19326

Inherited from

Typed.type