onDisconnected

abstract fun onDisconnected()

Called when the connection previously established with .connect has been disconnected.

If this is called, the transport can no longer be used and the caller should call DataTransport.close to release resources.