API reference › @evolu/common › local‑first/Protocol › ApplyProtocolMessageAsRelayResult
Defined in: packages/common/src/local-first/Protocol.ts:1091
Result type for applyProtocolMessageAsRelay.
Unlike ApplyProtocolMessageAsClientResult, relays always respond with a message to provide sync completion feedback. This ensures the initiator can reliably detect when synchronization is complete, even when there's nothing to sync. Clients may choose not to respond in certain cases (like when they receive broadcast messages or when they lack a write key for syncing).
Extends
Typed<"Response">
Properties
message
readonly message: ProtocolMessage;
Defined in: packages/common/src/local-first/Protocol.ts:1092
type
readonly type: "Response";
Defined in: packages/common/src/Type.ts:3492