Commit | Line | Data |
---|---|---|
268a74bb | 1 | import { type ProcedureName, type ProtocolRequestHandler, ProtocolVersion } from '../../../types'; |
17bc43d7 | 2 | import { type AbstractUIServer, AbstractUIService } from '../../internal'; |
4198ad5c | 3 | |
268a74bb | 4 | export class UIService001 extends AbstractUIService { |
fe94fce0 | 5 | constructor(uiServer: AbstractUIServer) { |
33cea517 | 6 | super(uiServer, ProtocolVersion['0.0.1']); |
d56ea27c JB |
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 | } | |
89b7a234 | 15 | } |
4198ad5c | 16 | } |