internal.Duplex.prototype.emit - Node documentation
method internal.Duplex.prototype.emit

Usage in Deno

import { internal } from "node:stream";
Duplex.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

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

Parameters

event: "data"
chunk: any

Return Type

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

Parameters

event: "drain"

Return Type

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

Parameters

event: "end"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

event: "finish"

Return Type

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

Parameters

event: "pause"

Return Type

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

Parameters

event: "pipe"
src: Readable

Return Type

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

Parameters

event: "readable"

Return Type

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

Parameters

event: "resume"

Return Type

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

Parameters

event: "unpipe"
src: Readable

Return Type

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

Parameters

event: string | symbol
...args: any[]

Return Type

boolean