method Cluster.addListener
Jump to headingCluster.addListener(event: string,listener: (...args: any[]) => void,): this
events.EventEmitter
- disconnect
- exit
- fork
- listening
- message
- online
- setup
Parameters Jump to heading
Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "disconnect",listener: (worker: Worker) => void,): this
Parameters Jump to heading
Jump to headingevent: "disconnect"
Jump to headinglistener: (worker: Worker) => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "exit",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "exit"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "fork",listener: (worker: Worker) => void,): this
Parameters Jump to heading
Jump to headingevent: "fork"
Jump to headinglistener: (worker: Worker) => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(): this
Parameters Jump to heading
Jump to headingevent: "listening"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "message",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "message"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "online",listener: (worker: Worker) => void,): this
Parameters Jump to heading
Jump to headingevent: "online"
Jump to headinglistener: (worker: Worker) => void
Return Type Jump to heading
this
Jump to headingCluster.addListener(event: "setup",listener: (settings: ClusterSettings) => void,): this
Parameters Jump to heading
Jump to headingevent: "setup"
Jump to headinglistener: (settings: ClusterSettings) => void
Return Type Jump to heading
this