Http2Session.emit - Node documentation
method Http2Session.emit

Usage in Deno

import { type Http2Session } from "node:http2";
Http2Session.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

boolean
Http2Session.emit(
event: "error",
err: Error,
): boolean

Parameters

event: "error"
err: Error

Return Type

boolean
Http2Session.emit(
event: "frameError",
frameType: number,
errorCode: number,
streamID: number,
): boolean

Parameters

event: "frameError"
frameType: number
errorCode: number
streamID: number

Return Type

boolean
Http2Session.emit(
event: "goaway",
errorCode: number,
lastStreamID: number,
opaqueData?: Buffer,
): boolean

Parameters

event: "goaway"
errorCode: number
lastStreamID: number
optional
opaqueData: Buffer

Return Type

boolean
Http2Session.emit(
event: "localSettings",
settings: Settings,
): boolean

Parameters

event: "localSettings"
settings: Settings

Return Type

boolean
Http2Session.emit(event: "ping"): boolean

Parameters

event: "ping"

Return Type

boolean
Http2Session.emit(
event: "remoteSettings",
settings: Settings,
): boolean

Parameters

event: "remoteSettings"
settings: Settings

Return Type

boolean
Http2Session.emit(event: "timeout"): boolean

Parameters

event: "timeout"

Return Type

boolean
Http2Session.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters

event: string | symbol
...args: any[]

Return Type

boolean