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

# HCGetWebSocketFunctions

> 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, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCWebSocketGetEventFunctions](/reference/live/httpclient/httpclient/functions/hcwebsocketgeteventfunctions.md)
- [HCWebSocketGetHeader](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader.md)
- [HCGetWebSocketConnectResult](/reference/live/httpclient/httpclient/functions/hcgetwebsocketconnectresult.md)
- [HCWebSocketGetHeaderAtIndex](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [HCWebSocketGetNumHeaders](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders.md)
