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 | Modifiers | Type | Description |
|---|---|---|---|
| eventTypes? | readonly | string[] | (Optional) Declares the event types that this listener is interested in. |
Methods
| Method | Description |
|---|---|
| onEvent(event, context)? | (Optional) Processes an event emitted by the agent. |