fun getWebSocketUrl(url: String): String
Creates a websocket URL from current window.location and given path.