iya-sts
    Preparing search index...
    parse: (bytes: Buffer) => ParseResult = ClientHello.parse

    Type Declaration

      • (bytes: Buffer): ParseResult
      • Parses the TLS records at the front of a connection far enough to hold one whole ClientHello, joining a hello fragmented across records.

        Parameters

        • bytes: Buffer

          what the connection has sent so far

        Returns ParseResult

        { state: 'incomplete' } when more bytes are needed, { state: 'invalid', reason } when this is not a ClientHello, or { state: 'complete', hello }