Commit | Line | Data |
---|---|---|
268a74bb JB |
1 | import { AbstractUIService } from './AbstractUIService'; |
2 | import { type ProcedureName, type ProtocolRequestHandler, ProtocolVersion } from '../../../types'; | |
6c1761d4 | 3 | import type { AbstractUIServer } from '../AbstractUIServer'; |
4198ad5c | 4 | |
268a74bb | 5 | export class UIService001 extends AbstractUIService { |
fe94fce0 | 6 | constructor(uiServer: AbstractUIServer) { |
33cea517 | 7 | super(uiServer, ProtocolVersion['0.0.1']); |
d56ea27c JB |
8 | for (const procedureName of Object.keys( |
9 | AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMap | |
10 | ) as ProcedureName[]) { | |
11 | this.requestHandlers.set( | |
12 | procedureName, | |
13 | this.handleProtocolRequest.bind(this) as ProtocolRequestHandler | |
14 | ); | |
15 | } | |
89b7a234 | 16 | } |
4198ad5c | 17 | } |