onLost

abstract fun onLost(message: String)

Called when a successful connection has been lost. Could because peer device closes the connection or that the connection has been lost.

Parameters

message

message that described the reason why the connection has been lost.