Skip to main content

on

method internal.Duplex.prototype.on
Jump to headingDuplex.prototype.on(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "data",
listener: (chunk: any) => void,
): this

Parameters Jump to heading

Jump to headingevent: "data"
Jump to headinglistener: (chunk: any) => void

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "drain",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "end",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "error",
listener: (err: Error) => void,
): this

Parameters Jump to heading

Jump to headingevent: "error"
Jump to headinglistener: (err: Error) => void

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "finish",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "pause",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "pipe",
listener: (src: Readable) => void,
): this

Parameters Jump to heading

Jump to headingevent: "pipe"
Jump to headinglistener: (src: Readable) => void

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "readable",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "resume",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
event: "unpipe",
listener: (src: Readable) => void,
): this

Parameters Jump to heading

Jump to headingevent: "unpipe"
Jump to headinglistener: (src: Readable) => void

Return Type Jump to heading

this
Jump to headingDuplex.prototype.on(
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