API reference / @evolu/common / Evolu/Protocol / ApplyProtocolMessageAsRelayResult
Interface: ApplyProtocolMessageAsRelayResult
Defined in: packages/common/src/Evolu/Protocol.ts:1026
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).
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
message | readonly | ProtocolMessage | packages/common/src/Evolu/Protocol.ts:1028 |
type | readonly | "response" | packages/common/src/Evolu/Protocol.ts:1027 |