Fray Electron
    Preparing search index...

    Function parseFrame

    • Validates and decodes a complete frame into routing prefix, header, and payload view.

      Parameters

      • frame: Uint8Array

        Complete encoded frame.

      Returns { header: DecodedHeader; payload: Uint8Array; prefix: Prefix }

      Decoded prefix/header and a payload view into the original frame.

      If frame lengths, encoded header, or its protocol version are invalid.