code: function updateConnectionParameters() {
        if (self.connectionWait < MAX_CONNECTION_ATTEMPT_WAIT) {
          self.connectionWait += UNSUCCESSFUL_CONNECTION_ATTEMPT_ADDITIONAL_WAIT;
        }
  
        if (self.openTimeout < MAX_OPEN_ATTEMPT_TIMEOUT) {
          self.openTimeout += UNSUCCESSFUL_OPEN_ATTEMPT_ADDITIONAL_TIMEOUT;
        }
  
        if (self.connectedTimeout < MAX_CONNECTED_ATTEMPT_TIMEOUT) {
          self.connectedTimeout += UNSUCCESSFUL_CONNECTED_ATTEMPT_ADDITIONAL_TIMEOUT;
        }
  
        if (self.compulsorySecure !== true) {
          self.connectionSecure = !self.connectionSecure;
        }
  
        self.connectionAttempts++;
      }
docs: /*-----------------------------------------------
  -----------------------------------------------