Field Notes
    Preparing search index...

    Function readBearerToken

    • Resolves the bearer token of an upgrade request, preferring channels that stay out of access logs: Sec-WebSocket-Protocol bearer entry, then Authorization: Bearer, then the token query parameter.

      Parameters

      • req: IncomingMessage

      Returns string | undefined