Node.js - Cluster Module
Why does the following code fail to restart a worker after it crashes?
cluster.on('exit', (worker, code, signal) => {
if (code !== 0) {
worker.fork();
}
});