Callback listeners
#
Observing the connection events IndividuallyTo monitor the chat connection status, you can achieve this by defining a ChatConnectionListener interface. You have the option to either implement this interface directly or create an anonymous class that adheres to the ChatConnectionListener interface. Subsequently, attach the listener to your ChatConnectionManager instance. This allows you to receive updates on the connection status, such as when the chat is connected, disconnected, or encounters an error.
tip
There can be used as multiple message listener at a time, if you set multiple times using the below method it will not replace the old listener.
#
Event Listener for Connection Success updates#
Event Listener for Connection Disconnected Updates#
Event Listener for Connection Failed Updates#
Event Listener for logged out UpdatesWhen logout called then the following method will be triggered.
#
Observing the connection events CollectivelyAssign the listener to the appropriate class to receive event updates. Extend the class and implement the necessary event listeners collectively for streamlined integration you can register your own listener by using the below method.
tip
There can be only one message listener at a time, if you set multiple times using the below method it will replace the old listener always.