Skip to main content

addListener

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

Parameters Jump to heading

Jump to headingevent: "connect"
Jump to headinglistener: (
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
socket: net.Socket | tls.TLSSocket,
) => void

Return Type Jump to heading

this
Jump to headingServerHttp2Session.addListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "stream"
Jump to headinglistener: (
flags: number,
) => void

Return Type Jump to heading

this
Jump to headingServerHttp2Session.addListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Back to top