Http2Session.type - Node documentation
property Http2Session.type

Usage in Deno

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

The http2session.type will be equal tohttp2.constants.NGHTTP2_SESSION_SERVER if this Http2Session instance is a server, and http2.constants.NGHTTP2_SESSION_CLIENT if the instance is a client.

Type

number