IEventListener interface
Describes a listener interface that needs to be implemented by components interested in listening to events emitted by an agent.
Signature:export interface IEventListener
Properties
Property | Type | Description |
---|---|---|
eventTypes | string[] | Declares the event types that this listener is interested in. |
Methods
Method | Description |
---|---|
onEvent(event, context) | Processes an event emitted by the agent. |