private constructor() {
this.started = false;
this.workerScript = path.join(path.resolve(__dirname, '../'), 'charging-station', 'StationWorker.js');
+ Configuration.setConfigurationChangeCallback(async () => this.restart());
}
public static getInstance(): Bootstrap {
numStationsTotal++;
}
} catch (error) {
- // eslint-disable-next-line no-console
console.error('Charging station start with template file ' + stationURL.file + ' error ', error);
}
}
}
this.started = true;
} catch (error) {
- // eslint-disable-next-line no-console
console.error('Bootstrap start error ', error);
}
}