Hello @MAORVERED MAORVERED ,
Is it a server or client ?
It is a test sample, which contains client and server.
As you can see from the code, it uses WebSocketCreateClientHandle and WebSocketCreateServerHandle to create a client side websocket handle and a server side websocket handle.
// Create a client side websocket handle.
hr = WebSocketCreateClientHandle(NULL, 0, &clientHandle);
if (FAILED(hr))
{
goto quit;
}
// Create a server side websocket handle.
hr = WebSocketCreateServerHandle(NULL, 0, &serverHandle);
if (FAILED(hr))
{
goto quit;
}
The debugging result of the sample is to use WebSocketSend to send data and use WebSocketReceive to receive data.
Thank you!
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.