onDisconnected

open fun onDisconnected(thrown: Exception?)

Called when the connection has been terminated.