getWebSocketUrl

Creates a websocket URL from current window.location and given path.