disconnect
disconnect
- disconnect():
Promise<void>
Disconnects the connected peer from the call.
Returns
Promise<void>
Example
In this example, we answer an incoming call and connect the call to a peer call. Once connected to the peer, we play a TTS message to the peer and then disconnect the peer. Once the peer is disconnected, we play a TTS message to the inbound call leg and then hangup the call.