startInterval() {
    this.intervalId = setInterval(() => {
      this.emit('takeSnapshot');
    }, this.interval);
    return this.intervalId;
  }
/**
   * Stores the value of the intervalId for later recycling
   *
   * @return {Number} - interval id
   */
Stores the value of the intervalId for later recycling
@return {Number} - interval id
Stores the value of the intervalId for later recycling @return { Number } - interval id
startInterval() {
    this.intervalId = setInterval(() => {
      this.emit('takeSnapshot');
    }, this.interval);
    return this.intervalId;
  }
startInterval ( ) { this . intervalId = setInterval ( ( ) => { this . emit ( 'takeSnapshot' ) ; } , this . interval ) ; return this . intervalId ; }
Stores the value of the intervalId for later recycling
 @return {Number} - interval id
Stores the value of the intervalId for later recycling @return { Number } - interval id