Sync / foldkit-sync

ExchangeFailed

interface · packages/sync/src/diagnostics.ts:17

interface ExchangeFailed extends Diagnostic {
  readonly _tag: 'ExchangeFailed'
  readonly documentId: string
  readonly replicaId: string
  readonly error: ReplicaError | TransportError
}

An exchange failed; the replica shows it in status.lastError and tries again on a backoff.

In the guides

Members

ExchangeFailed._tag

property · packages/sync/src/diagnostics.ts:18

readonly _tag: 'ExchangeFailed'

ExchangeFailed.documentId

property · packages/sync/src/diagnostics.ts:19

readonly documentId: string

ExchangeFailed.replicaId

property · packages/sync/src/diagnostics.ts:20

readonly replicaId: string

ExchangeFailed.error

property · packages/sync/src/diagnostics.ts:21

readonly error: ReplicaError | TransportError