API reference › @evolu/common › local‑first/Shared › DisconnectedSyncConnection
Defined in: packages/common/src/local-first/Shared.ts:599
No connection: a connection closed or failed, or the relay did not answer a request in time. The transport reconnects by itself.
Extends
Typed<"Disconnected">
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:601
When it disconnected. Failed reconnect attempts leave it unchanged.
error
readonly error:
| SyncTransportError
| null;
Defined in: packages/common/src/local-first/Shared.ts:609
The last error, or null. A close or an unanswered request 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:603
When the last connection opened, or null when none has.
type
readonly type: "Disconnected";
Defined in: packages/common/src/Type.ts:15402