public void OnChatStateChange(ChatState state) { // use OnConnected() and OnDisconnected() // this method might become more useful in the future, when more complex states are being used. }