Node.js - Cluster Module
Which of the following is the correct way to check if the current process is a worker in a Node.js cluster?
cluster.isWorker to check if the process is a worker.cluster.isMaster checks for master, process.isWorker does not exist, and cluster.isPrimary is a newer alias but checking false is less direct.cluster.isWorker to check worker = B [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions