IEventListener
interface can be seen below:NotificationEvent
argument in the notification received method models an event that the event service has received and parsed. This argument will contain information telling us the type of the event that was received, the channel the event was broadcasted on, and the JSON message that is the data associated with the event, such as the asset ID for asset events or the wallet address for wallet events.PusherEventService
, subscribed channels may only be subscribed to after starting the service for the first time.PusherEventService
persist after shutting down and restarting the service.true
, then the service will pass the NotificationEvent
to our listener for processing, whereas if the matcher returns false
, then our listener will not receive the event. As with standard registration, this method returns a listener registration object.