export type ProtocolResponse = [string, ResponsePayload];
export type ProtocolRequestHandler = (
- payload: RequestPayload
-) => ResponsePayload | Promise<ResponsePayload>;
+ uuid?: string,
+ payload?: RequestPayload
+) => undefined | Promise<undefined> | ResponsePayload | Promise<ResponsePayload>;
export enum ProcedureName {
LIST_CHARGING_STATIONS = 'listChargingStations',
STOP_TRANSACTION = 'stopTransaction',
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
+ OPEN_CONNECTION = 'openConnection',
+ CLOSE_CONNECTION = 'closeConnection',
}
+
export interface RequestPayload extends JsonObject {
hashId?: string;
+ hashIds?: string[];
}
export enum ResponseStatus {