- ...(uiServerConfiguration.type === ApplicationProtocol.HTTP &&
- isUndefined(uiServerConfiguration.version) && {
- version: ApplicationProtocolVersion.VERSION_11,
- }),
- ...uiServerConfiguration,
- };
+ version: ApplicationProtocolVersion.VERSION_11,
+ ...uiServerConfiguration
+ }
+ if (
+ uiServerConfiguration.type === ApplicationProtocol.WS &&
+ uiServerConfiguration.version !== ApplicationProtocolVersion.VERSION_11
+ ) {
+ console.warn(
+ chalk.yellow(
+ `Only version ${ApplicationProtocolVersion.VERSION_11} is supported for WebSocket UI server. Falling back to version ${ApplicationProtocolVersion.VERSION_11}.`
+ )
+ )
+ uiServerConfiguration.version = ApplicationProtocolVersion.VERSION_11
+ }