The Cognigy Click To Call SDK uses an event-driven architecture. You can subscribe to events using client.on() and unsubscribe using client.off(). All events are fully typed when using TypeScript.
Connection Events
Call Events
Audio Events
Info Message Events
Transcription Events
Error Events
Unsubscribing from Events
To remove an event listener, use client.off() with the same event name and callback reference:
When using off(), you must pass the same function reference that was used with on(). Anonymous functions can’t be removed.