protected readonly version: ProtocolVersion;
protected readonly uiServer: AbstractUIServer;
protected readonly requestHandlers: Map<ProcedureName, ProtocolRequestHandler>;
- protected workerBroadcastChannel: UIServiceWorkerBroadcastChannel;
+ protected uiServiceWorkerBroadcastChannel: UIServiceWorkerBroadcastChannel;
constructor(uiServer: AbstractUIServer, version: ProtocolVersion) {
this.version = version;
[ProcedureName.START_SIMULATOR, this.handleStartSimulator.bind(this)],
[ProcedureName.STOP_SIMULATOR, this.handleStopSimulator.bind(this)],
]);
- this.workerBroadcastChannel = new UIServiceWorkerBroadcastChannel(this);
+ this.uiServiceWorkerBroadcastChannel = new UIServiceWorkerBroadcastChannel(this);
}
public async requestHandler(request: RawData): Promise<void> {
}
private handleStartTransaction(uuid: string, payload: RequestPayload): void {
- this.workerBroadcastChannel.sendRequest([
+ this.uiServiceWorkerBroadcastChannel.sendRequest([
uuid,
BroadcastChannelProcedureName.START_TRANSACTION,
payload as BroadcastChannelRequestPayload,
}
private handleStopTransaction(uuid: string, payload: RequestPayload): void {
- this.workerBroadcastChannel.sendRequest([
+ this.uiServiceWorkerBroadcastChannel.sendRequest([
uuid,
BroadcastChannelProcedureName.STOP_TRANSACTION,
payload as BroadcastChannelRequestPayload,
}
private handleStartChargingStation(uuid: string, payload: RequestPayload): void {
- this.workerBroadcastChannel.sendRequest([
+ this.uiServiceWorkerBroadcastChannel.sendRequest([
uuid,
BroadcastChannelProcedureName.START_CHARGING_STATION,
payload as BroadcastChannelRequestPayload,
}
private handleStopChargingStation(uuid: string, payload: RequestPayload): void {
- this.workerBroadcastChannel.sendRequest([
+ this.uiServiceWorkerBroadcastChannel.sendRequest([
uuid,
BroadcastChannelProcedureName.STOP_CHARGING_STATION,
payload as BroadcastChannelRequestPayload,