reset() {
    return new Promise((resolve, reject) => {
      // We only want to reset the tracker, not delete it entirely so keep a
      // reference that we can restore.
      const trackerBackup = Opendatacam.tracker;
      trackerBackup.reset();

      // Keep the eventEmitter to not lose subscriptions.
      const emitterBackup = Opendatacam.eventEmitter;

      // Reset counter
      Opendatacam = cloneDeep(initialState);
      // Restore reference to the reseted tracker and event emitter
      Opendatacam.tracker = trackerBackup;
      Opendatacam.eventEmitter = emitterBackup;
    });
  }
A reference to the config object to be used