API Reference / @evolu/common / Evolu/Protocol / applyProtocolMessageAsRelay
Function: applyProtocolMessageAsRelay()
function applyProtocolMessageAsRelay(deps): (inputMessage, options, version) => Result<
| null
| ProtocolMessage, ProtocolInvalidDataError>;
Defined in: packages/common/src/Evolu/Protocol.ts:905
Parameters
Parameter | Type |
---|---|
deps | StorageDep |
Returns
(
inputMessage,
options,
version): Result<
| null
| ProtocolMessage, ProtocolInvalidDataError>;
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
inputMessage | Uint8Array | undefined | - |
options | ApplyProtocolMessageAsRelayOptions | {} | - |
version | number & Brand <"Int" > & Brand <"NonNegative" > | protocolVersion | For testing purposes only; should not be used in production. |
Returns
Result
<
| null
| ProtocolMessage
, ProtocolInvalidDataError
>