disconnect(), then destroys all internal managers (AudioManager, SessionManager, SipManager), clears the cached configuration, and removes all event listeners. Call this method when the client is no longer needed, for example, on page unload. Once destroyed, the client instance cannot be reused.
Signature
Parameters
None.Returns
Promise<void>
Throws
An error if the cleanup process fails.Example
Cleanup on Page Unload
More Information
- disconnect — disconnect without destroying the client
- endCall — end only the active call