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

PropertyTypeDescription
eventTypesstring[]Declares the event types that this listener is interested in.

Methods

MethodDescription
onEvent(event, context)Processes an event emitted by the agent.