Http2Session.addListener - Node documentation
method Http2Session.addListener

Usage in Deno

import { type Http2Session } from "node:http2";
Http2Session.addListener(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
Http2Session.addListener(
event: "error",
listener: (err: Error) => void,
): this

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
Http2Session.addListener(
event: "frameError",
listener: (
frameType: number,
errorCode: number,
streamID: number,
) => void
,
): this

Parameters

event: "frameError"
listener: (
frameType: number,
errorCode: number,
streamID: number,
) => void

Return Type

this
Http2Session.addListener(
event: "goaway",
listener: (
errorCode: number,
lastStreamID: number,
opaqueData?: Buffer,
) => void
,
): this

Parameters

event: "goaway"
listener: (
errorCode: number,
lastStreamID: number,
opaqueData?: Buffer,
) => void

Return Type

this
Http2Session.addListener(
event: "localSettings",
listener: (settings: Settings) => void,
): this

Parameters

event: "localSettings"
listener: (settings: Settings) => void

Return Type

this
Http2Session.addListener(
event: "ping",
listener: () => void,
): this

Parameters

event: "ping"
listener: () => void

Return Type

this
Http2Session.addListener(
event: "remoteSettings",
listener: (settings: Settings) => void,
): this

Parameters

event: "remoteSettings"
listener: (settings: Settings) => void

Return Type

this
Http2Session.addListener(
event: "timeout",
listener: () => void,
): this

Parameters

event: "timeout"
listener: () => void

Return Type

this
Http2Session.addListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this