event-driven-io / emmett

Emmett - a Node.js library taking your event-driven applications back to the future!
https://event-driven-io.github.io/emmett/
195 stars 19 forks source link

Added in memory message bus implementation. #58

Closed oskardudycz closed 7 months ago

oskardudycz commented 7 months ago

Tests and docs will come later. This is also a first step in implementing the pub/sub part of messaging.

Also, stuff like:

Will need to be added later.

Added also event and command methods for handling event and command creation.

I added the DeepReadonly structure, which is unrelated, but I was too lazy to split it into separate pull requests. 🙃 Joke aside, I hoped to use it for the Event data, but it gives some weird edge cases for union types, so I left it for future use.