code: function connectionDelay() {
        var delay = self.connectionWait;
        if (delay === 0) {
          if (self.connectedAt) {
            var t = 1000;
            var connectedFor = new Date().getTime() - self.connectedAt;
            if (connectedFor < t) {
              delay = t - connectedFor;
            }
          }
        }
        return delay;
      }
docs: Returns the delay before the next connection attempt should be made  This function guards against attempting to connect more frequently than once every second