Function: addCallEndedListener()
ts
function addCallEndedListener(listener): EventSubscription;Defined in: Calls.ts:619
Subscribes to call ended events.
Fired when a call has ended (e.g., user pressed end button). Clean up your media connection when you receive this event.
Parameters
| Parameter | Type | Description |
|---|---|---|
listener | (event) => void | Callback invoked when a call ends. |
Returns
EventSubscription
A subscription that can be removed by calling .remove().
See
- endCall — the app-side request that fires this when the user ends from your UI.
- reportCallEnded — for remote-initiated ends (server tells you the other party hung up).