Skip to main content
method ServerHttp2Session.once
ServerHttp2Session.once(
event: "connect",
listener: (
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
socket: net.Socket | tls.TLSSocket,
) => void
,
): this
Deprecated

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Back to top