Just a friendly warning: the event emitter API is not public for a reason - its error prone right now. Specifically calling removeAllListeners on some events (or without an argument) may leave the cluster in a broken state where nothing works because the cluster uses its own events to implement its internal mechanics.
Looks good, I'll be merging it.
Just a friendly warning: the event emitter API is not public for a reason - its error prone right now. Specifically calling
removeAllListeners
on some events (or without an argument) may leave the cluster in a broken state where nothing works because the cluster uses its own events to implement its internal mechanics.I do plan on fixing that.