Code example for AppStateClient

Methods: disconnect, isConnected