Use wss: if UI is loaded over https: