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

Usage in Deno

```typescript import { type ServerHttp2Session } from "node:node__http2.d.ts"; ```
ServerHttp2Session.emit(
event: "connect",
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
socket: net.Socket | tls.TLSSocket,
): boolean

Parameters

event: "connect"
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>
socket: net.Socket | tls.TLSSocket

Return Type

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

Parameters

event: "stream"
flags: number

Return Type

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

Parameters

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

Return Type

boolean