Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PropagatingEventBus

A non-queued bus implementation that executes subscribers immediately in the main thread. This bus also supports "propagating" events along to any other connected buses. Such behavior is useful, e.g., if we want to have a semi-isolated request- level bus whose events still reach the global EventBus instance.

Hierarchy

Index

Constructors

constructor

Properties

Protected recipients

recipients: Collection<Bus> = ...

Protected subscribers

subscribers: Collection<EventSubscriberEntry<any>> = ...

Collection of subscribers, by their events.

Methods

Protected buildSubscription

connect

  • connect(recipient: Bus): void

dispatch

subscribe

unsubscribe

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.