API reference › @evolu/common › local‑first/Protocol › ApplyProtocolMessageAsClientFailed
Defined in: packages/common/src/local-first/Protocol.ts:1220
Result of applyProtocolMessageAsClient: the protocol logged an
exception thrown by calling the storage's writeMessages (Write) or a
failed range reconciliation (Sync) to the console. An exception while the
returned Task runs is a defect that aborts the Run instead. A rejected or
failed write, which the built-in storages return when SQLite fails it, gives
the original StorageWriteMessagesError through Result.
Reconciliation can fail after messages have been committed; that failure does
not roll back the write.
Extends
Typed<"Failed">
Properties
cause
readonly cause: "Write" | "Sync";
Defined in: packages/common/src/local-first/Protocol.ts:1221
type
readonly type: "Failed";
Defined in: packages/common/src/Type.ts:19326