| 1 | import { type ProcedureName, type ProtocolRequestHandler, ProtocolVersion } from '../../../types'; |
| 2 | import { type AbstractUIServer, AbstractUIService } from '../../internal'; |
| 3 | |
| 4 | export class UIService001 extends AbstractUIService { |
| 5 | constructor(uiServer: AbstractUIServer) { |
| 6 | super(uiServer, ProtocolVersion['0.0.1']); |
| 7 | for (const procedureName of Object.keys( |
| 8 | AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMap |
| 9 | ) as ProcedureName[]) { |
| 10 | this.requestHandlers.set( |
| 11 | procedureName, |
| 12 | this.handleProtocolRequest.bind(this) as ProtocolRequestHandler |
| 13 | ); |
| 14 | } |
| 15 | } |
| 16 | } |