Skip to main content

emit

method Cluster.emit
Jump to headingCluster.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 headingCluster.emit(
event: "disconnect",
worker: Worker,
): boolean

Parameters Jump to heading

Jump to headingevent: "disconnect"

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "exit",
worker: Worker,
code: number,
signal: string,
): boolean

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headingcode: number
Jump to headingsignal: string

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "fork",
worker: Worker,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "listening",
worker: Worker,
address: Address,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "message",
worker: Worker,
message: any,
handle: net.Socket | net.Server,
): boolean

Parameters Jump to heading

Jump to headingevent: "message"
Jump to headingmessage: any
Jump to headinghandle: net.Socket | net.Server

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "online",
worker: Worker,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Jump to headingCluster.emit(
event: "setup",
settings: ClusterSettings,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Back to top