| 1 | import { type ProtocolRequestHandler, ProtocolVersion } from '../../../types/index.js' |
| 2 | import type { AbstractUIServer } from '../AbstractUIServer.js' |
| 3 | import { AbstractUIService } from './AbstractUIService.js' |
| 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 | } |