事件:'disconnect'


【Event: 'disconnect'

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

【Similar to the cluster.on('disconnect') event, but specific to this worker.】

cluster.fork().on('disconnect', () => {
  // Worker has disconnected
});