Skip to content

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

ParameterTypeDescription
listener(event) => voidCallback 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).

Released under the MIT License.