- this.workerScript = path.join(path.resolve(__dirname, '../'), 'charging-station', 'StationWorker.js');
- Configuration.setConfigurationChangeCallback(async () => this.restart());
+ this.workerScript = path.join(path.resolve(__dirname, '../'), 'charging-station', 'ChargingStationWorker.js');
+ this.initWorkerImplementation();
+ Configuration.getUIWebSocketServer().enabled && (this.uiWebSocketServer = new UIWebSocketServer({
+ ...Configuration.getUIWebSocketServer().options, handleProtocols: UIServiceUtils.handleProtocols
+ }));
+ Configuration.getPerformanceStorage().enabled && (this.storage = StorageFactory.getStorage(
+ Configuration.getPerformanceStorage().type,
+ Configuration.getPerformanceStorage().uri,
+ this.logPrefix()
+ ));
+ Configuration.setConfigurationChangeCallback(async () => Bootstrap.getInstance().restart());