Creates AppEventPortal instance objects
Return an instance of the Traces class to which the app logs can be fetch.
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.
On event publishing, each the notification action will be logged into the traces instance.
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.
Each publication action will be logged into the traces instance.
The name of the event to publish
Payload object with data to send into the published event
Generated using TypeDoc
Children class @EventPortal which is a Controller class to abstract the events subscription and publishing actions.
This class has the login feature as an enhancement.