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

WebSocket 함수를 구현하는 함수들을 가져옵니다.

## Syntax

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

### Parameters

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

필요에 따라 WebSocket 연결 함수를 구현하는 콜백입니다.

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

필요에 따라 WebSocket 메시지 전송 함수를 구현하는 콜백입니다.

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

필요에 따라 WebSocket 이진 메시지 전송 함수를 구현하는 콜백입니다.

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

필요에 따라 WebSocket 연결 해제 함수를 구현하는 콜백입니다.

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

콜백에 대한 컨텍스트 포인터입니다.

### Return value

Type: HRESULT

이 API 작업의 결과 코드입니다. 가능한 값은 S\_OK 또는 E\_FAIL입니다.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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