Skip to main content
method ChildProcess.prototype.emit
ChildProcess.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

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

Return Type

boolean
ChildProcess.prototype.emit(
event: "close",
code: number | null,
signal: Signals | null,
): boolean
Deprecated

Parameters

event: "close"
code: number | null
signal: Signals | null

Return Type

boolean
ChildProcess.prototype.emit(event: "disconnect"): boolean
Deprecated

Parameters

event: "disconnect"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

boolean
ChildProcess.prototype.emit(
event: "exit",
code: number | null,
signal: Signals | null,
): boolean
Deprecated

Parameters

event: "exit"
code: number | null
signal: Signals | null

Return Type

boolean
ChildProcess.prototype.emit(
event: "message",
message: Serializable,
sendHandle: SendHandle,
): boolean
Deprecated

Parameters

event: "message"
message: Serializable
sendHandle: SendHandle

Return Type

boolean
ChildProcess.prototype.emit(
event: "spawn",
listener: () => void,
): boolean
Deprecated

Parameters

event: "spawn"
listener: () => void

Return Type

boolean
Back to top