Function parseHeaders

Parses headers

Event Socket framing contains headers and a body.

The header must be decoded first to learn the presence and length of the body.

  • Parameters

    • headerBuffer: Buffer<ArrayBufferLike>

    Returns Headers