-import type { JsonObject } from './JsonType.js';
-import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel.js';
+import type { JsonObject } from './JsonType.js'
+import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel.js'
-export type ProtocolRequest = [string, ProcedureName, RequestPayload];
-export type ProtocolResponse = [string, ResponsePayload];
+export type ProtocolRequest = [string, ProcedureName, RequestPayload]
+export type ProtocolResponse = [string, ResponsePayload]
export type ProtocolRequestHandler = (
uuid?: string,
procedureName?: ProcedureName,
export type ProtocolRequestHandler = (
uuid?: string,
procedureName?: ProcedureName,
- payload?: RequestPayload,
-) => undefined | Promise<undefined> | ResponsePayload | Promise<ResponsePayload>;
+ payload?: RequestPayload
+) => undefined | Promise<undefined> | ResponsePayload | Promise<ResponsePayload>
export enum ProcedureName {
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
export enum ProcedureName {
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
OPEN_CONNECTION = 'openConnection',
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
OPEN_CONNECTION = 'openConnection',
METER_VALUES = 'meterValues',
DATA_TRANSFER = 'dataTransfer',
DIAGNOSTICS_STATUS_NOTIFICATION = 'diagnosticsStatusNotification',
METER_VALUES = 'meterValues',
DATA_TRANSFER = 'dataTransfer',
DIAGNOSTICS_STATUS_NOTIFICATION = 'diagnosticsStatusNotification',
- status: ResponseStatus;
- hashIdsSucceeded?: string[];
- hashIdsFailed?: string[];
- responsesFailed?: BroadcastChannelResponsePayload[];
+ status: ResponseStatus
+ hashIdsSucceeded?: string[]
+ hashIdsFailed?: string[]
+ responsesFailed?: BroadcastChannelResponsePayload[]