Implementing a message bus in JavaScript

from blog Oliver Caldwell's blog, | ↗ original
For starters, what on Earth is a message bus? It’s not a device used for bulk transportation of postmen… yet. I see message buses as the predecessors to the event managers you see so commonly in today’s modern JavaScript. The only problem with event emitters and the like is that you require a library built to handle it which incurs an overhead on...