Similar to the cluster.on('disconnect') event, but specific to this worker.
Similar to the cluster.on('disconnect') event, but specific to this worker.
the event handler
This event is the same as the one provided by child_process.fork().
This event is the same as the one provided by child_process.fork(). In a worker you can also use process.on('error').
the error handler
Similar to the cluster.on('exit') event, but specific to this worker.
Similar to the cluster.on('exit') event, but specific to this worker.
the callback <il>worker <Worker> the worker
Similar to the cluster.on('listening') event, but specific to this worker.
Similar to the cluster.on('listening') event, but specific to this worker.
the event handler
Similar to the cluster.on('message') event, but specific to this worker.
Similar to the cluster.on('message') event, but specific to this worker. This event is the same as the one provided by child_process.fork(). In a worker you can also use process.on('message').
the event handler
Similar to the cluster.on('online') event, but specific to this worker.
Similar to the cluster.on('online') event, but specific to this worker.
the event handler
Send a message to a worker or master, optionally with a handle.
Send a message to a worker or master, optionally with a handle. In the master this sends a message to a specific worker. It is identical to ChildProcess.send(). In a worker this sends a message to the master. It is identical to process.send().
worker.send(message[, sendHandle][, callback])
the given worker
Worker Events and Extensions