Skip to main content
method internal.Duplex.prototype.emit
Duplex.prototype.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

boolean
Duplex.prototype.emit(
event: "data",
chunk: any,
): boolean
Deprecated

Parameters

event: "data"
chunk: any

Return Type

boolean
Duplex.prototype.emit(event: "drain"): boolean
Deprecated

Parameters

event: "drain"

Return Type

boolean
Duplex.prototype.emit(event: "end"): boolean
Deprecated

Parameters

event: "end"

Return Type

boolean
Duplex.prototype.emit(
event: "error",
err: Error,
): boolean
Deprecated

Parameters

event: "error"
err: Error

Return Type

boolean
Duplex.prototype.emit(event: "finish"): boolean
Deprecated

Parameters

event: "finish"

Return Type

boolean
Duplex.prototype.emit(event: "pause"): boolean
Deprecated

Parameters

event: "pause"

Return Type

boolean
Duplex.prototype.emit(
event: "pipe",
src: Readable,
): boolean
Deprecated

Parameters

event: "pipe"

Return Type

boolean
Duplex.prototype.emit(event: "readable"): boolean
Deprecated

Parameters

event: "readable"

Return Type

boolean
Duplex.prototype.emit(event: "resume"): boolean
Deprecated

Parameters

event: "resume"

Return Type

boolean
Duplex.prototype.emit(
event: "unpipe",
src: Readable,
): boolean
Deprecated

Parameters

event: "unpipe"

Return Type

boolean
Duplex.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top