ServerHttp2Session.prependOnceListener - Node documentation
method ServerHttp2Session.prependOnceListener

Usage in Deno

import { type ServerHttp2Session } from "node:http2";
ServerHttp2Session.prependOnceListener(
event: "connect",
listener: (
socket: net.Socket | tls.TLSSocket,
) => void
,
): this

Parameters

event: "connect"
listener: (
socket: net.Socket | tls.TLSSocket,
) => void

Return Type

this
ServerHttp2Session.prependOnceListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this

Parameters

event: "stream"
listener: (
flags: number,
) => void

Return Type

this
ServerHttp2Session.prependOnceListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this