destroy
Destroys the client, clearing timers and releasing all resources.
Intentionally destroying the client also ends its session: the resume
state (authorization state and protocol) and the attach records are both
cleared, so the ended session’s calls cannot be reattached after a later
connect. Credentials
and device preferences are preserved — use
resetToDefaults
for a full wipe. To temporarily stop receiving inbound calls while keeping
the session alive, use
unregister instead.
Returns
void