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
Fix GH actions run on dependabot PRs.
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ChargingStation.ts
diff --git
a/src/charging-station/ChargingStation.ts
b/src/charging-station/ChargingStation.ts
index 5c83b7f2b9a044d456b8199156e7d09d40c26386..dbabf1e5f118501de1e9f55c0266a2630b7d2c63 100644
(file)
--- a/
src/charging-station/ChargingStation.ts
+++ b/
src/charging-station/ChargingStation.ts
@@
-103,7
+103,7
@@
export default class ChargingStation {
}
}
}
}
- public isWebSocket
Open
(): boolean {
+ public isWebSocket
ConnectionOpened
(): boolean {
return this.wsConnection?.readyState === WebSocket.OPEN;
}
return this.wsConnection?.readyState === WebSocket.OPEN;
}
@@
-330,7
+330,7
@@
export default class ChargingStation {
this.getConnector(Utils.convertToInt(connector)).status = ChargePointStatus.UNAVAILABLE;
}
}
this.getConnector(Utils.convertToInt(connector)).status = ChargePointStatus.UNAVAILABLE;
}
}
- if (this.isWebSocket
Open
()) {
+ if (this.isWebSocket
ConnectionOpened
()) {
this.wsConnection.close();
}
if (this.getEnableStatistics()) {
this.wsConnection.close();
}
if (this.getEnableStatistics()) {
@@
-613,7
+613,7
@@
export default class ChargingStation {
if (this.isRegistered()) {
await this.startMessageSequence();
this.hasStopped && (this.hasStopped = false);
if (this.isRegistered()) {
await this.startMessageSequence();
this.hasStopped && (this.hasStopped = false);
- if (this.hasSocketRestarted && this.isWebSocket
Open
()) {
+ if (this.hasSocketRestarted && this.isWebSocket
ConnectionOpened
()) {
this.flushMessageQueue();
}
} else {
this.flushMessageQueue();
}
} else {
@@
-887,7
+887,7
@@
export default class ChargingStation {
: 0;
if (webSocketPingInterval > 0 && !this.webSocketPingSetInterval) {
this.webSocketPingSetInterval = setInterval(() => {
: 0;
if (webSocketPingInterval > 0 && !this.webSocketPingSetInterval) {
this.webSocketPingSetInterval = setInterval(() => {
- if (this.isWebSocket
Open
()) {
+ if (this.isWebSocket
ConnectionOpened
()) {
this.wsConnection.ping((): void => { });
}
}, webSocketPingInterval * 1000);
this.wsConnection.ping((): void => { });
}
}, webSocketPingInterval * 1000);
@@
-945,7
+945,7
@@
export default class ChargingStation {
if (!Utils.isNullOrUndefined(this.stationInfo.supervisionUser) && !Utils.isNullOrUndefined(this.stationInfo.supervisionPassword)) {
options.auth = `${this.stationInfo.supervisionUser}:${this.stationInfo.supervisionPassword}`;
}
if (!Utils.isNullOrUndefined(this.stationInfo.supervisionUser) && !Utils.isNullOrUndefined(this.stationInfo.supervisionPassword)) {
options.auth = `${this.stationInfo.supervisionUser}:${this.stationInfo.supervisionPassword}`;
}
- if (this.isWebSocket
Open
() && forceCloseOpened) {
+ if (this.isWebSocket
ConnectionOpened
() && forceCloseOpened) {
this.wsConnection.close();
}
let protocol;
this.wsConnection.close();
}
let protocol;