HCGetWebSocketFunctions
Gets the functions that implement the WebSocket functions.
Syntax
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.141.GSDK.C.lib