setConnectionStatusListener

Deprecated

Sets a listener for connection status changes.

When the callback status is TOKEN_INCORRECT, you need to obtain the correct token and actively call connect. If using IMKit, use the method of the same name in RongIM setConnectionStatusListener.

Since

5.0.0

Deprecated

Please use addConnectionStatusListener

Parameters

listener

The listener for connection status changes.