> ## 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

Get the proxy URI for the WebSocket.

## Syntax

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

### Parameters

*websocket*   \_In\_\
Type: HCWebsocketHandle

The handle of the WebSocket.

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

The UTF-8 encoded proxy URI for the WebSocket.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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