this.authorizedTags = this.getAuthorizedTags();
}
- get wsConnectionUrl(): URL {
+ private get wsConnectionUrl(): URL {
return this.getSupervisionUrlOcppConfiguration()
? new URL(
this.getConfigurationKey(this.getSupervisionUrlOcppKey()).value +
}
}
);
- // FIXME: triggered by saveConfiguration()
- // if (this.getOcppPersistentConfiguration()) {
- // FileUtils.watchJsonFile<ChargingStationConfiguration>(
- // this.logPrefix(),
- // FileType.ChargingStationConfiguration,
- // this.configurationFile,
- // this.configuration
- // );
- // }
// Handle WebSocket message
this.wsConnection.on(
'message',
// Read conf
return Configuration.objectHasOwnProperty(Configuration.getConfig(), 'logStatisticsInterval')
? Configuration.getConfig().logStatisticsInterval
- : 60;
+ : Constants.DEFAULT_LOG_STATISTICS_INTERVAL;
}
static getUIWebSocketServer(): UIWebSocketServerConfiguration {
static readonly DEFAULT_CONNECTION_TIMEOUT = 30;
+ static readonly DEFAULT_LOG_STATISTICS_INTERVAL = 60; // Seconds
+
static readonly DEFAULT_HEARTBEAT_INTERVAL = 60000; // Ms
static readonly SUPPORTED_MEASURANDS = Object.freeze([