breejs / bree

Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
https://jobscheduler.net
MIT License
3.01k stars 78 forks source link

Emit and listen to custom events? #124

Closed DnOberon closed 3 years ago

DnOberon commented 3 years ago

Forgive me if this isn't the place to post this, or if I missed something so obvious in the readme.

Is there any way for us to listen to custom events emitted from the bree workers on the main thread?

shadowgate15 commented 3 years ago

So sort of. Check out the Custom error/message events. This would let you create something similar to that using Node's communication systems. If you are looking for something more than that. We would gladly look at a pull request.