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

# HCSetWebSocketFunctions

> HCSetWebSocketFunctions

# HCSetWebSocketFunctions

호출자가 선택적으로 WebSocket 함수를 구현할 수 있게 합니다.

## Syntax

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

### Parameters

*websocketConnectFunc*   \_In\_\
Type: HCWebSocketConnectFunction

필요에 따라 WebSocket 연결 함수를 구현하는 콜백입니다. 현재 플랫폼 기반의 기본 구현을 사용하려면 nullptr을 전달합니다.

*websocketSendMessageFunc*   \_In\_\
Type: HCWebSocketSendMessageFunction

필요에 따라 WebSocket 메시지 전송 함수를 구현하는 콜백입니다. 현재 플랫폼 기반의 기본 구현을 사용하려면 nullptr을 전달합니다.

*websocketSendBinaryMessageFunc*   \_In\_\
Type: HCWebSocketSendBinaryMessageFunction

필요에 따라 WebSocket 이진 메시지 전송 함수를 구현하는 콜백입니다. 현재 플랫폼 기반의 기본 구현을 사용하려면 nullptr을 전달합니다.

*websocketDisconnectFunc*   \_In\_\
Type: HCWebSocketDisconnectFunction

필요에 따라 WebSocket 연결 해제 함수를 구현하는 콜백입니다. 현재 플랫폼 기반의 기본 구현을 사용하려면 nullptr을 전달합니다.

*context*   \_In\_opt\_\
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

- [HCWebSocketSetHeader](/ko/reference/live/httpclient/httpclient/functions/hcwebsocketsetheader.md)
- [HCWebSocketSetProxyUri](/ko/reference/live/httpclient/httpclient/functions/hcwebsocketsetproxyuri.md)
- [HCWebSocketSetBinaryMessageFragmentEventFunction](/ko/reference/live/httpclient/httpclient/functions/hcwebsocketsetbinarymessagefragmenteventfunction.md)
- [HCWebSocketSetProxyDecryptsHttps](/ko/reference/live/httpclient/httpclient/functions/hcwebsocketsetproxydecryptshttps.md)
- [HCWebSocketSetMaxReceiveBufferSize](/ko/reference/live/httpclient/httpclient/functions/hcwebsocketsetmaxreceivebuffersize.md)
