> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HCWebSocketGetProxyUri

> HCWebSocketGetProxyUri

# HCWebSocketGetProxyUri

获取 WebSocket 的代理 URI。

## Syntax

```cpp theme={null}
HRESULT HCWebSocketGetProxyUri(  
         HCWebsocketHandle websocket,  
         const char** proxyUri  
)  
```

### Parameters

*websocket*   \_In\_\
Type: HCWebsocketHandle

WebSocket 的句柄。

*proxyUri*   \_Out\_\
Type: char\*\*

WebSocket 的 UTF-8 编码代理 URI。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG、E\_OUTOFMEMORY 或 E\_FAIL。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCWebSocketSetProxyUri](/zh-CN/reference/live/httpclient/httpclient/functions/hcwebsocketsetproxyuri.md)
- [HCWebSocketSetProxyDecryptsHttps](/zh-CN/reference/live/httpclient/httpclient/functions/hcwebsocketsetproxydecryptshttps.md)
- [HCWebSocketCreate](/zh-CN/reference/live/httpclient/httpclient/functions/hcwebsocketcreate.md)
- [HCWebSocketConnectAsync](/zh-CN/reference/live/httpclient/httpclient/functions/hcwebsocketconnectasync.md)
- [HCSetGlobalProxy](/zh-CN/reference/live/httpclient/httpclient/functions/hcsetglobalproxy.md)
