Skip to main content
ServerHttp2Session.emit - http2 - Node documentation
method ServerHttp2Session.emit

Usage in Deno

import { type ServerHttp2Session } from "node:http2";
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