ClientHttp2Session.emit - Node documentation
method ClientHttp2Session.emit

Usage in Deno

import { type ClientHttp2Session } from "node:http2";
ClientHttp2Session.emit(
event: "altsvc",
alt: string,
origin: string,
stream: number,
): boolean

Parameters

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

Return Type

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

Parameters

event: "origin"
origins: readonly string[]

Return Type

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

Parameters

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

Return Type

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

Parameters

event: "stream"
flags: number

Return Type

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

Parameters

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

Return Type

boolean