disconnect
Cleanly close the WebSocket connection to SignalWire RELAY. This cancels the
internal receive loop, ping monitor, all pending JSON-RPC requests, any queued
requests waiting for reconnection, and any in-progress dial operations. The
client is fully reset and can be reconnected with
connect().
When using the async context manager (async with client:), disconnect() is
called automatically on exit. When using
run(), disconnection happens
automatically on Ctrl+C or when the event loop is stopped.
Parameters
None.
Returns
None