this.uiServer.buildProtocolRequest(
generateUUID(),
ProcedureName.STOP_CHARGING_STATION,
- Constants.EMPTY_FREEZED_OBJECT,
+ Constants.EMPTY_FROZEN_OBJECT,
),
);
await Promise.race([
}
private startReservationExpirationSetInterval(customInterval?: number): void {
- const interval =
- customInterval ?? Constants.DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL;
+ const interval = customInterval ?? Constants.DEFAULT_RESERVATION_EXPIRATION_INTERVAL;
if (interval > 0) {
logger.info(
`${this.logPrefix()} Reservation expiration date checks started every ${formatDurationMilliSeconds(
MeterValueMeasurand.ENERGY_ACTIVE_IMPORT_REGISTER,
]);
- static readonly OCPP_REQUEST_EMPTY = Constants.EMPTY_FREEZED_OBJECT;
- static readonly OCPP_RESPONSE_EMPTY = Constants.EMPTY_FREEZED_OBJECT;
+ static readonly OCPP_REQUEST_EMPTY = Constants.EMPTY_FROZEN_OBJECT;
+ static readonly OCPP_RESPONSE_EMPTY = Constants.EMPTY_FROZEN_OBJECT;
static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status: GenericStatus.Accepted });
static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ status: GenericStatus.Rejected });
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FREEZED_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FROZEN_OBJECT,
),
);
} else if (wsClosedOrErrored) {
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for non buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FREEZED_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FROZEN_OBJECT,
);
// Reject response
if (messageType !== MessageType.CALL_MESSAGE) {
ErrorType.GENERIC_ERROR,
`Timeout for message id '${messageId}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FREEZED_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FROZEN_OBJECT,
),
() => {
messageType === MessageType.CALL_MESSAGE && chargingStation.requests.delete(messageId);
this.buildProtocolRequest(
uuid,
procedureName,
- body ?? Constants.EMPTY_FREEZED_OBJECT,
+ body ?? Constants.EMPTY_FROZEN_OBJECT,
),
)
.then((protocolResponse?: ProtocolResponse) => {
this.code = code ?? ErrorType.GENERIC_ERROR;
this.command = command;
- this.details = details ?? Constants.EMPTY_FREEZED_OBJECT;
+ this.details = details ?? Constants.EMPTY_FROZEN_OBJECT;
}
}
static readonly STOP_SIMULATOR_TIMEOUT = 120000; // Ms
- static readonly EMPTY_FREEZED_OBJECT = Object.freeze({});
+ static readonly EMPTY_FROZEN_OBJECT = Object.freeze({});
static readonly EMPTY_FUNCTION = Object.freeze(() => {
/* This is intentional */
});
- static readonly DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL = 60000; // Ms
+ static readonly DEFAULT_RESERVATION_EXPIRATION_INTERVAL = 60000; // Ms
private constructor() {
// This is intentional