Module "cluster"
Index
Classes
Interfaces
Variables
Functions
Variables
isMaster
isWorker
settings
worker
workers
Type declaration
-
[index: string]: Worker
Functions
addListener
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
Returns Cluster
-
Parameters
-
event: "message"
-
listener: function
Returns Cluster
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns Cluster
-
disconnect
-
Parameters
-
Optional callback: Function
Returns void
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
Returns boolean
-
Parameters
-
event: "message"
-
listener: function
Returns boolean
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns boolean
-
eventNames
-
Returns string[]
fork
-
Parameters
-
Optional env: any
Returns Worker
-
getMaxListeners
-
Returns number
listenerCount
-
Parameters
-
type: string
Returns number
-
listeners
-
Parameters
-
event: string
Returns Function[]
-
on
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
Returns Cluster
-
Parameters
-
event: "message"
-
listener: function
Returns Cluster
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns Cluster
-
once
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
Returns Cluster
-
Parameters
-
event: "message"
-
listener: function
Returns Cluster
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns Cluster
-
prependListener
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
Returns Cluster
-
Parameters
-
event: "message"
-
listener: function
Returns Cluster
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns Cluster
-
prependOnceListener
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
Returns Cluster
-
Parameters
-
event: "message"
-
listener: function
Returns Cluster
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns Cluster
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns Cluster
-
removeAllListeners
-
Parameters
-
Optional event: string
Returns Cluster
-
removeListener
-
Parameters
-
event: string
-
listener: Function
Returns Cluster
-
setMaxListeners
-
Parameters
-
n: number
Returns Cluster
-
setupMaster
-
Parameters
-
Optional settings: ClusterSetupMasterSettings
Returns void
-
Generated using TypeDoc
events.EventEmitter