Adds an event listener for a specific event. See the Event Reference for all available events.Documentation Index
Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
Use this file to discover all available pages before exploring further.
Signature
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
event | EventName | The name of the event to listen for. | Yes |
callback | EventCallback<T> | The callback function to invoke when the event is emitted. | Yes |
Returns
this ā the client instance, allowing method chaining.