Http2Session.prependOnceListener - Node documentation
method Http2Session.prependOnceListener

Usage in Deno

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Http2Session.prependOnceListener(
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.prependOnceListener(
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.prependOnceListener(
event: "localSettings",
listener: (settings: Settings) => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this