Skip to main content

prependOnceListener

method Cluster.prependOnceListener
Jump to headingCluster.prependOnceListener(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingCluster.prependOnceListener(
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.prependOnceListener(
event: "exit",
listener: (
worker: Worker,
code: number,
signal: string,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headinglistener: (
worker: Worker,
code: number,
signal: string,
) => void

Return Type Jump to heading

this
Jump to headingCluster.prependOnceListener(
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.prependOnceListener(
event: "listening",
listener: (
worker: Worker,
address: Address,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "listening"
Jump to headinglistener: (
worker: Worker,
address: Address,
) => void

Return Type Jump to heading

this
Jump to headingCluster.prependOnceListener(
event: "message",
listener: (
worker: Worker,
message: any,
handle: net.Socket | net.Server,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "message"
Jump to headinglistener: (
worker: Worker,
message: any,
handle: net.Socket | net.Server,
) => void

Return Type Jump to heading

this
Jump to headingCluster.prependOnceListener(
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.prependOnceListener(
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
Back to top