Javascript event bus architecture

In this video at 20:50 ( corresponding slide ), Nicholas Zakas presents what I consider the architecture of Event Bus. I do not know if calls that interact with the bus are asynchronous or not?
Second question: if calls are asynchronous, how should they be implemented?
Thanks you

+2
source share
1 answer

I believe they are asynchronous.

My guess is that they seem to be implemented using custom DOM events .

This is a useful javascript decoupling method, and you can check jQuery trigger docs, find the string 'custom' to see how to fire a custom event.

+1
source

All Articles