Skip to main content
Gets the functions that implement the WebSocket functions.

Syntax

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, E_INVALIDARG if any output parameter is nullptr, or E_FAIL.

Requirements

Header: httpProvider.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

httpProvider
Last modified on October 30, 2026