API reference@evolu/commonlocal‑first/Protocol › decodeProtocolMessageToJson

function decodeProtocolMessageToJson(
  _protocolMessage: ProtocolMessage,
  _isInitiator: boolean,
): unknown;

Defined in: packages/common/src/local-first/Protocol.ts:2248

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.