Skip to main content

prependOnceListener

method ClientHttp2Session.prependOnceListener
Jump to headingClientHttp2Session.prependOnceListener(
event: "altsvc",
listener: (
alt: string,
origin: string,
stream: number,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "altsvc"
Jump to headinglistener: (
alt: string,
origin: string,
stream: number,
) => void

Return Type Jump to heading

this
Jump to headingClientHttp2Session.prependOnceListener(
event: "origin",
listener: (origins: string[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: "origin"
Jump to headinglistener: (origins: string[]) => void

Return Type Jump to heading

this
Jump to headingClientHttp2Session.prependOnceListener(
event: "connect",
listener: (
socket: net.Socket | tls.TLSSocket,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "connect"
Jump to headinglistener: (
socket: net.Socket | tls.TLSSocket,
) => void

Return Type Jump to heading

this
Jump to headingClientHttp2Session.prependOnceListener(
event: "stream",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingClientHttp2Session.prependOnceListener(
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