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

Obtient les fonctions qui implémentent les fonctions WebSocket.

## Syntaxe

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

### Paramètres

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

Rappel qui implémente la fonction de connexion WebSocket comme souhaité.

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

Rappel qui implémente la fonction d'envoi de message WebSocket comme souhaité.

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

Rappel qui implémente la fonction d'envoi de message binaire WebSocket comme souhaité.

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

Rappel qui implémente la fonction de déconnexion WebSocket comme souhaité.

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

Pointeur de contexte pour les rappels.

### Valeur renvoyée

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK ou E\_FAIL.

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

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


## Related topics

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