Skip to main content
Disconnects / closes the WebSocket.

Syntax

Parameters

websocket   _In_
Type: HCWebsocketHandle
Handle to the WebSocket.

Return value

Type: HRESULT Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.

Requirements

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

See also

httpClient
Last modified on October 30, 2026