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