¥Event: 'disconnect'
'disconnect'
类似于 cluster.on('disconnect') 事件,但特定于此工作进程。
cluster.on('disconnect')
¥Similar to the cluster.on('disconnect') event, but specific to this worker.
cluster.fork().on('disconnect', () => { // Worker has disconnected }); 拷贝
cluster.fork().on('disconnect', () => { // Worker has disconnected });