X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIServerUtils.ts;h=95bbba56c8134dd93f20ebbf2dcf06986e70961d;hb=6a4032b5d8f3cbaa18d3beddcdfe9d335c1cba90;hp=2b0bf3de152253e5aec13d33c817cc861ac5a365;hpb=5edd8ba0f8978cfb3ca9d80f299d9748c6c5970e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIServerUtils.ts b/src/charging-station/ui-server/UIServerUtils.ts index 2b0bf3de..95bbba56 100644 --- a/src/charging-station/ui-server/UIServerUtils.ts +++ b/src/charging-station/ui-server/UIServerUtils.ts @@ -13,8 +13,8 @@ export class UIServerUtils { // eslint-disable-next-line @typescript-eslint/no-unused-vars request: IncomingMessage, ): string | false => { - let protocol: Protocol; - let version: ProtocolVersion; + let protocol: Protocol | undefined; + let version: ProtocolVersion | undefined; if (protocols.size === 0) { return false; } @@ -26,7 +26,7 @@ export class UIServerUtils { logger.error( `${logPrefix( ' UI WebSocket Server |', - )} Unsupported protocol: ${protocol} or protocol version: ${version}`, + )} Unsupported protocol: '${protocol}' or protocol version: '${version}'`, ); return false; };