Read server.js for some reference implementations on how to do various things with forky and the cluster module.
install & run
clone the repo
You can hit routes to cause the server to do various production-style errors and disconnections. Try it out with cURL.
Just get a 200 response with the id of the worker
Tell the worker to disconnect gracefully
Tell the worker to disconnect graefully and for an exit after a timeout
Tell the worker to
Tell the worker to throw an error (handled by the domain middleware)