public interface ConnectionListener
Multiple sessions might re-use the same connection. In that case, any connection change will be reported to all sessions.
If a disconnect happened due to an error, that error will be reported to the sessions
|Modifier and Type||Method and Description|
A change in the connection to the server was detected.
void onChange(ConnectionState oldState, ConnectionState newState)
oldState- the state the connection transitioned from.
newState- the state the connection transitioned to.