Skip to main content
ClientHttp2Session.emit - node__http2.d.ts - Node documentation
method ClientHttp2Session.emit

Usage in Deno

```typescript import { type ClientHttp2Session } from "node:node__http2.d.ts"; ```
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