Function parseMessage

  • Parse a raw JSON string into a validated JSON-RPC message

    Parameters

    • raw: string | Buffer | Uint8Array

      Raw JSON string to parse

    • options: ParseOptions = {}

      Parse options

    Returns ParseResult<ParsedMessage>

    ParseResult with either the parsed message or an error