close

suspend fun close()

Close the client and release all resources.

Gracefully disconnects if connected, cancels all background coroutines including reconnection attempts. After calling this method, the client cannot be reused.