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

Un rappel qui implémente la fonction de connexion WebSocket selon vos besoins.

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

Un rappel qui implémente la fonction d'envoi de message WebSocket selon vos besoins.

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

Un rappel qui implémente la fonction d'envoi de message binaire WebSocket selon vos besoins.

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

Un rappel qui implémente la fonction de déconnexion WebSocket selon vos besoins.

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

Le pointeur de contexte des rappels.

### Valeur de retour

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-CA/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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