Skip to main content

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

PropertyModifiersTypeDescription
eventTypes?readonlystring[](Optional) Declares the event types that this listener is interested in.

Methods

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