new master(options)
The interface for the master process.
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
The options hash.
Properties
|
- Source:
Methods
-
connectWorker(worker)
-
Makes the master listen on worker messages.
Parameters:
Name Type Description workercluster.worker A cluster worker (the result of a `cluster.fork()`). - Source:
Returns:
an object with a `disconnectWorker` method.