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

# HCGetWebSocketFunctions

> HCGetWebSocketFunctions

Gets the functions that implement the WebSocket functions.

## Syntax

```cpp theme={null}
HRESULT HCGetWebSocketFunctions(  
         HCWebSocketConnectFunction* websocketConnectFunc,  
         HCWebSocketSendMessageFunction* websocketSendMessageFunc,  
         HCWebSocketSendBinaryMessageFunction* websocketSendBinaryMessageFunc,  
         HCWebSocketDisconnectFunction* websocketDisconnectFunc,  
         void** context  
)  
```

### Parameters

*websocketConnectFunc*   \_Out\_\
Type: HCWebSocketConnectFunction\*

A callback that implements WebSocket connect function as desired.

*websocketSendMessageFunc*   \_Out\_\
Type: HCWebSocketSendMessageFunction\*

A callback that implements WebSocket send message function as desired.

*websocketSendBinaryMessageFunc*   \_Out\_\
Type: HCWebSocketSendBinaryMessageFunction\*

A callback that implements WebSocket send binary message function as desired.

*websocketDisconnectFunc*   \_Out\_\
Type: HCWebSocketDisconnectFunction\*

A callback that implements WebSocket disconnect function as desired.

*context*   \_Out\_\
Type: void\*\*

The context pointer for the callbacks.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG if any output parameter is `nullptr`, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[httpProvider](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

- [HCWebSocketConnectFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcwebsocketconnectfunction.md)
- [HCWebSocketDisconnectFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcwebsocketdisconnectfunction.md)
- [HCWebSocketSendMessageFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcwebsocketsendmessagefunction.md)
- [HCWebSocketSendBinaryMessageFunction](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hcwebsocketsendbinarymessagefunction.md)
- [httpProvider (contents)](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)
