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

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

No connection: a connection closed or failed, or the shared worker replaced one after a sleep, an unanswered request, or silence. The transport reconnects by itself.

Extends

Properties

disconnectedAt

readonly disconnectedAt: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThan281474976710655"> & Brand<"Millis">;

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

When it disconnected. Failed reconnect attempts leave it unchanged.


error

readonly error:
  | SyncTransportError
  | null;

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

The last error, or null. A close or a replacement records none, so it can come from an earlier connection. Errors while reconnecting are routine.


openedAt

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

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

When the last connection opened, or null when none has.


type

readonly type: "Disconnected";

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

Inherited from

Typed.type