Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 701 Bytes

File metadata and controls

17 lines (11 loc) · 701 Bytes

WebSocketClient.Initialize

Initialize(hSession, pCertContext)

Initializes the WebSocketClient class.

hSession
A session handle opened by a call to WinHttpOpen() function. The session should be opened in synchronous mode for compatibility with future versions of this class.

pCertContext
A handle to a certificate to be used for making secure communication. If you do not provide the server with a client certificate, data sent from the server will not be encrypted.

Return Value
NO_ERROR on success, otherwise an error code.

Remarks
If the call was successful, you must call Free when you are done using the class to free system resources.