onDisconnected

open fun onDisconnected(thrown: Exception?)(source)

Called when the connection has been terminated.