return authorizedTags;
}
- private logPrefix(file: string): string {
+ private logPrefix = (file: string): string => {
return Utils.logPrefix(` Authorized tags cache for authorization file '${file}' |`);
- }
+ };
}
}
}
- private logPrefix(connectorId?: number): string {
+ private logPrefix = (connectorId?: number): string => {
return Utils.logPrefix(
` ${this.chargingStation.stationInfo.chargingStationId} | ATG${
connectorId !== undefined ? ` on connector #${connectorId.toString()}` : ''
}:`
);
- }
+ };
private handleStartTransactionResponse(
connectorId: number,
++this.numberOfChargingStations;
}
- private logPrefix(): string {
+ private logPrefix = (): string => {
return Utils.logPrefix(' Bootstrap |');
- }
+ };
}
);
}
- public logPrefix(): string {
+ public logPrefix = (): string => {
return Utils.logPrefix(
` ${
this?.stationInfo?.chargingStationId ??
ChargingStationUtils.getChargingStationId(this.index, this.getTemplateFromFile())
} |`
);
- }
+ };
public hasAuthorizedTags(): boolean {
return !Utils.isEmptyArray(
return messageEvent;
}
- private logPrefix(modName: string, methodName: string): string {
+ private logPrefix = (modName: string, methodName: string): string => {
return Utils.logPrefix(` Worker Broadcast Channel | ${modName}.${methodName}:`);
- }
+ };
}
: numberValue * options.unitMultiplier;
}
- private static logPrefix(ocppVersion: OCPPVersion): string {
+ private static logPrefix = (ocppVersion: OCPPVersion): string => {
return Utils.logPrefix(` OCPP ${ocppVersion} |`);
- }
+ };
}
}
}
- public logPrefix(modName?: string, methodName?: string, prefixSuffix?: string): string {
+ public logPrefix = (modName?: string, methodName?: string, prefixSuffix?: string): string => {
const logMsgPrefix = prefixSuffix ? `UI HTTP Server ${prefixSuffix}` : 'UI HTTP Server';
const logMsg =
modName && methodName ? ` ${logMsgPrefix} | ${modName}.${methodName}:` : ` ${logMsgPrefix} |`;
return Utils.logPrefix(logMsg);
- }
+ };
private requestListener(req: IncomingMessage, res: ServerResponse): void {
this.authenticate(req, (err) => {
}
}
- public logPrefix(modName?: string, methodName?: string, prefixSuffix?: string): string {
+ public logPrefix = (modName?: string, methodName?: string, prefixSuffix?: string): string => {
const logMsgPrefix = prefixSuffix
? `UI WebSocket Server ${prefixSuffix}`
: 'UI WebSocket Server';
const logMsg =
modName && methodName ? ` ${logMsgPrefix} | ${modName}.${methodName}:` : ` ${logMsgPrefix} |`;
return Utils.logPrefix(logMsg);
- }
+ };
private broadcastToClients(message: string): void {
for (const client of this.webSocketServer.clients) {
this.uiServer.sendResponse(this.uiServer.buildProtocolResponse(messageId, responsePayload));
}
- public logPrefix(modName: string, methodName: string): string {
+ public logPrefix = (modName: string, methodName: string): string => {
return this.uiServer.logPrefix(modName, methodName, this.version);
- }
+ };
public deleteBroadcastChannelRequest(uuid: string): void {
this.broadcastChannelRequests.delete(uuid);
return timeSeries.map((timeSeriesItem) => timeSeriesItem.value);
}
- private logPrefix(): string {
+ private logPrefix = (): string => {
return Utils.logPrefix(` ${this.objName} | Performance statistics`);
- }
+ };
}
: SupervisionUrlDistribution.ROUND_ROBIN;
}
- private static logPrefix(): string {
+ private static logPrefix = (): string => {
return `${new Date().toLocaleString()} Simulator configuration |`;
- }
+ };
private static warnDeprecatedConfigurationKey(
key: string,
// This is intentional
}
- public static logPrefix(prefixString = ''): string {
+ public static logPrefix = (prefixString = ''): string => {
return `${new Date().toLocaleString()}${prefixString}`;
- }
+ };
public static generateUUID(): string {
return crypto.randomUUID();