Commit | Line | Data |
---|---|---|
a10297ba | 1 | import { ProtocolCommand, ProtocolRequestHandler } from '../../types/UIProtocol'; |
de9136ae | 2 | |
4198ad5c | 3 | import AbstractUIService from './AbstractUIService'; |
e3822d6f | 4 | import { JsonObject } from '../../types/JsonType'; |
4198ad5c JB |
5 | import UIWebSocketServer from '../UIWebSocketServer'; |
6 | ||
f16356b9 | 7 | export default class UIService001 extends AbstractUIService { |
4198ad5c JB |
8 | constructor(uiWebSocketServer: UIWebSocketServer) { |
9 | super(uiWebSocketServer); | |
e7aeea18 JB |
10 | this.messageHandlers.set( |
11 | ProtocolCommand.START_TRANSACTION, | |
12 | this.handleStartTransaction.bind(this) as ProtocolRequestHandler | |
13 | ); | |
14 | this.messageHandlers.set( | |
15 | ProtocolCommand.STOP_TRANSACTION, | |
16 | this.handleStopTransaction.bind(this) as ProtocolRequestHandler | |
17 | ); | |
4198ad5c JB |
18 | } |
19 | ||
e3822d6f JB |
20 | private handleStartTransaction(payload: JsonObject): void {} |
21 | private handleStopTransaction(payload: JsonObject): void {} | |
4198ad5c | 22 | } |