docs: function() {
          clearInterval(this._checkConnectionTimer);
          this._checkConnectionTimer = undefined;
          this.muc.joinedRooms = {};
          this._isLogout = true;
          this.helpers.setUserCurrentJid('');
  
          if (Utils.getEnv().browser) {
              this.connection.flush();
              this.connection.disconnect();
          } else {
              this.Client.end();
          }
      }