The buildWsUr function in ui/config/api.config.js incorrectly assumes that any connection to a non-localhost hostname should use secure WebSockets (wss://). This ...