Connect WebSocket relative to window.location