Use wss only when base URI starts with https