1 import AbstractUIService from
'./AbstractUIService';
2 import { ProtocolVersion
} from
'../../types/UIProtocol';
3 import UIService_0_0_1 from
'./UIService_0_0_1';
4 import UIWebSocketServer from
'../UIWebSocketServer';
6 export default class UIServiceFactory
{
7 private constructor() {
11 public static getUIServiceImplementation(version
: ProtocolVersion
, uiWebSocketServer
: UIWebSocketServer
): AbstractUIService
| null {
13 case ProtocolVersion
['0.0.1']:
14 return new UIService_0_0_1(uiWebSocketServer
);