Use secure websockets when the page is loaded via HTTPS.