+ switch (this.uiServerConfiguration.version) {
+ case ApplicationProtocolVersion.VERSION_11:
+ this.httpServer = new Server();
+ break;
+ case ApplicationProtocolVersion.VERSION_20:
+ this.httpServer = createServer();
+ break;
+ default:
+ throw new BaseError(
+ `Unsupported application protocol version ${this.uiServerConfiguration.version}`,
+ );
+ }