disconnect

abstract suspend fun disconnect()(source)

Explicitly tears down the active transport, sending a polite ToRadio(disconnect = true) goodbye frame first when a transport is live. Safe to call when nothing is connected — implementations must no-op in that case. Suspends until the teardown completes.