disconnect

suspend fun disconnect()

Gracefully disconnect from the broker.

Cancels any active reconnection attempts and sends a DISCONNECT packet with ReasonCode.SUCCESS.