事件:'online'


¥Event: 'online'

类似于 cluster.on('online') 事件,但特定于此工作进程。

¥Similar to the cluster.on('online') event, but specific to this worker.

cluster.fork().on('online', () => {
  // Worker is online
}); 

它不会在工作进程中触发。

¥It is not emitted in the worker.