code: function(){
      if (this.eventQueue.length > 0){
        this.send(this.eventQueue);
        this.eventQueue = new Array();
      }
      // //reset the timer
      if (this.timer)  clearTimeout(this.timer);
      if (this.flushInterval) this.timer = setTimeout(this.flush.bind(this), this.flushInterval)
    }
docs: Flush out the event queue by sending events to the events service
  @private