Skip to main content
method ClientHttp2Session.emit
ClientHttp2Session.emit(
event: "altsvc",
alt: string,
origin: string,
stream: number,
): boolean
Deprecated

Parameters

event: "altsvc"
alt: string
origin: string
stream: number

Return Type

boolean
ClientHttp2Session.emit(
event: "origin",
origins: readonly string[],
): boolean
Deprecated

Parameters

event: "origin"
origins: readonly string[]

Return Type

boolean
ClientHttp2Session.emit(
event: "connect",
socket: net.Socket | tls.TLSSocket,
): boolean
Deprecated

Parameters

event: "connect"
socket: net.Socket | tls.TLSSocket

Return Type

boolean
ClientHttp2Session.emit(
event: "stream",
flags: number,
): boolean
Deprecated

Parameters

event: "stream"
flags: number

Return Type

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

Parameters

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

Return Type

boolean
Back to top