use location object and allow for seamless HTTPS WebSockets