Http2Session.alpnProtocol - Node documentation
property Http2Session.alpnProtocol

Usage in Deno

import { type Http2Session } from "node:http2";

Value will be undefined if the Http2Session is not yet connected to a socket, h2c if the Http2Session is not connected to a TLSSocket, or will return the value of the connected TLSSocket's own alpnProtocolproperty.

Type

string | undefined