on Chat State Received
Performs any actions that could be required depending on the chat client state. Is is invoked with the current chat client state when the listener is added and also whenever the chat client state changes after that.
Parameters
chats
Chats service.
state
Chat client state.