Skip to main content

emit

method ChildProcess.prototype.emit
Jump to headingChildProcess.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Jump to headingChildProcess.prototype.emit(
event: "close",
code: number | null,
signal: Signals | null,
): boolean

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headingcode: number | null
Jump to headingsignal: Signals | null

Return Type Jump to heading

boolean
Jump to headingChildProcess.prototype.emit(event: "disconnect"): boolean

Parameters Jump to heading

Jump to headingevent: "disconnect"

Return Type Jump to heading

boolean
Jump to headingChildProcess.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

boolean
Jump to headingChildProcess.prototype.emit(
event: "exit",
code: number | null,
signal: Signals | null,
): boolean

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headingcode: number | null
Jump to headingsignal: Signals | null

Return Type Jump to heading

boolean
Jump to headingChildProcess.prototype.emit(
event: "message",
message: Serializable,
sendHandle: SendHandle,
): boolean
Jump to headingChildProcess.prototype.emit(
event: "spawn",
listener: () => void,
): boolean

Parameters Jump to heading

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

Return Type Jump to heading

boolean
Back to top