API reference / @evolu/common / Evolu/Protocol / decodeProtocolMessageToJson

Function: decodeProtocolMessageToJson()

function decodeProtocolMessageToJson(_protocolMessage, _isInitiator): unknown;

Defined in: packages/common/src/Evolu/Protocol.ts:2007

Decodes a ProtocolMessage into a readable JSON object for debugging.

Note: This is a stub for future implementation. It should use:

  • DecodeVersionAndOwner
  • DecodeError or decodeWriteKeys (depending on context)
  • DecodeMessages
  • DecodeRanges

If you want to help, please contribute to this function.

Parameters

ParameterType
_protocolMessageProtocolMessage
_isInitiatorboolean

Returns

unknown

Was this page helpful?