Skip to main content
method Http2Session.emit
Http2Session.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

event: "localSettings"
settings: Settings

Return Type

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

Parameters

event: "ping"

Return Type

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

Parameters

event: "remoteSettings"
settings: Settings

Return Type

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

Parameters

event: "timeout"

Return Type

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

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top