事件:'listening'
【Event: 'listening'】
address<Object>
类似于 cluster.on('listening') 事件,但特定于此工作进程。
【Similar to the cluster.on('listening') event, but specific to this worker.】
cluster.fork().on('listening', (address) => {
// Worker is listening
});cluster.fork().on('listening', (address) => {
// Worker is listening
});它不会在工作进程中触发。
【It is not emitted in the worker.】