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