- this.messageHandlers.set(
- ProtocolCommand.START_TRANSACTION,
- this.handleStartTransaction.bind(this) as ProtocolRequestHandler
- );
- this.messageHandlers.set(
- ProtocolCommand.STOP_TRANSACTION,
- this.handleStopTransaction.bind(this) as ProtocolRequestHandler
- );
+ for (const procedureName in AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMapping) {
+ this.requestHandlers.set(
+ procedureName as ProcedureName,
+ this.handleProtocolRequest.bind(this) as ProtocolRequestHandler
+ );
+ }