Signature
Parameters
None.Returns
Promise<void>
Throws
An error if there is no active session to terminate or if the termination fails. The error messages start withFailed to end call:, for example, Failed to end call: No active session to terminate.
Example
With Error Handling
More Information
- startCall
- disconnect
- ended event
- failed event