Creates @EventPortal objects initialized with a supported notification strategy.
NotificationStrategyFoundation instance used on subscribe time to encapsulate notifications strategies
Getter method to retrieve the notification Strategy Type.
Ex:
const eventPortal = new EventPortal(reduxStrategy);
eventPortal.notificationStrategyType; // return 'Redux'
Method to register/subscribe listeners to events. After this method execution the listeners/subscribers will be notified about events occurrences using the corresponding strategyCallBack.
The name of the event of interest
Payload object with data to send into the published event
Method to publish events and notify subscribers about events occurrences.
The name of the event to publish
Payload object with data to send into the published event
Generated using TypeDoc
Controller class to abstract the events subscription and publishing actions.