Closed Sebosek closed 7 years ago
I'm closing this issue because I decided to use Rabbot in favor of Coworkers.
Sorry for the late reply, I am on vacation with limited internet.
Coworkers is spinning up workers using cluster. You are getting EADDRINUSE bc it would cause express to be started in every worker.
You could move express listen into an if block: if cluster.isMaster
Lmk if you have any other questions
Hi there,
here is a sample application, where I'm trying to run express and coworkers as one app, but it ends up with an error EADDRINUSE. What is the best strategy for this type of use case?