1 import { JsonObject
} from
'./JsonType';
2 import { RequestPayload
, ResponsePayload
} from
'./UIProtocol';
4 export type BroadcastChannelRequest
= [
6 BroadcastChannelProcedureName
,
7 BroadcastChannelRequestPayload
9 export type BroadcastChannelResponse
= [string, BroadcastChannelResponsePayload
];
11 export enum BroadcastChannelProcedureName
{
12 START_CHARGING_STATION
= 'startChargingStation',
13 STOP_CHARGING_STATION
= 'stopChargingStation',
14 START_TRANSACTION
= 'startTransaction',
15 STOP_TRANSACTION
= 'stopTransaction',
16 OPEN_CONNECTION
= 'openConnection',
17 CLOSE_CONNECTION
= 'closeConnection',
20 export interface BroadcastChannelRequestPayload
extends Omit
<RequestPayload
, 'hashId'> {
23 transactionId
?: number;
27 export type BroadcastChannelResponsePayload
= ResponsePayload
;
29 export type MessageEvent
= { data
: BroadcastChannelRequest
| BroadcastChannelResponse
};