repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: refine log level
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ui-server
/
UIWebSocketServer.ts
diff --git
a/src/charging-station/ui-server/UIWebSocketServer.ts
b/src/charging-station/ui-server/UIWebSocketServer.ts
index 8306be0e76ddc6f0c19a20945717deef2c2ded56..5651ab5a405f3d98c00f0688ff7f493ab7da8a71 100644
(file)
--- a/
src/charging-station/ui-server/UIWebSocketServer.ts
+++ b/
src/charging-station/ui-server/UIWebSocketServer.ts
@@
-60,9
+60,9
@@
export class UIWebSocketServer extends AbstractUIServer {
this.uiServices
.get(version)
?.requestHandler(request)
this.uiServices
.get(version)
?.requestHandler(request)
- .then((protocolResponse: ProtocolResponse) => {
+ .then((protocolResponse
?
: ProtocolResponse) => {
if (!isNullOrUndefined(protocolResponse)) {
if (!isNullOrUndefined(protocolResponse)) {
- this.sendResponse(protocolResponse);
+ this.sendResponse(protocolResponse
!
);
}
})
.catch(Constants.EMPTY_FUNCTION);
}
})
.catch(Constants.EMPTY_FUNCTION);
@@
-176,10
+176,12
@@
export class UIWebSocketServer extends AbstractUIServer {
// logger.debug(
// `${this.logPrefix(
// moduleName,
// logger.debug(
// `${this.logPrefix(
// moduleName,
- // 'validateRawDataRequest'
- // )} Raw data received in string format: ${rawData.toString()}`
+ // 'validateRawDataRequest',
+ // // eslint-disable-next-line @typescript-eslint/no-base-to-string
+ // )} Raw data received in string format: ${rawData.toString()}`,
// );
// );
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
const request = JSON.parse(rawData.toString()) as ProtocolRequest;
if (Array.isArray(request) === false) {
const request = JSON.parse(rawData.toString()) as ProtocolRequest;
if (Array.isArray(request) === false) {