Use WS protocol within the cluster
MODIFY
src/client/ocpp/json/JsonRestChargingStationClient.ts
src/client/ocpp/json/JsonRestChargingStationClient.ts
@@ -41,7 +41,7 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
chargingStationURL = chargingStationURL.substring(0, chargingStationURL.length - 1);
}
// Keep
- this.serverURL = `wss://${chargingStation.cloudHostIP}/REST/${tenantID}/${chargingStation.tokenID}/${chargingStation.id}`;
+ this.serverURL = `ws://${chargingStation.cloudHostIP}/REST/${tenantID}/${chargingStation.tokenID}/${chargingStation.id}`;
// Override
if (Utils.isDevelopmentEnv()) {
this.serverURL = `${chargingStationURL}/REST/${tenantID}/${chargingStation.tokenID}/${chargingStation.id}`;

Use WS protocol within the cluster