event bus

A shared object that parts of an application use to publish events and subscribe to them, so senders and receivers never reference each other directly.

In more detail

In the browser, a class extending EventTarget makes a small typed event bus. It keeps components decoupled, at the cost of making the flow of data harder to trace.

Related terms

Taught in

References

Certification courses