microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.91k stars 1.64k forks source link

websocket connection check #1698

Open Pankaj003 opened 2 years ago

Pankaj003 commented 2 years ago

Hi,

My requirement is to establish connection to the websocket and then send multiple messages to the server. I checked websocket_client class but couldn't find way to check if client is still connnected. Is there any function or way to find if client is connected before sending message?

Thanks