Code example for AppStateClient

Methods: disconnectisConnected