code: public void logout() {
          saveResumeToken(null);
          mDDPState = DDPSTATE.NotLoggedIn;
          mUserId = null;
          broadcastConnectionState(mDDPState);
      }
docs: Logs out from server and removes the resume token