> ## 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 的 Proxy URI。

## 語法

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

### 參數

*websocket*   \_In\_\
類型：HCWebsocketHandle

WebSocket 的控制代碼。

*proxyUri*   \_Out\_\
類型：char\*\*

WebSocket 的 UTF-8 編碼 Proxy URI。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_INVALIDARG、E\_OUTOFMEMORY 或 E\_FAIL。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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