How to specify the websocket connect timer in CPPRest SDK

218 Views Asked by At

I'm trying to connect an websocket server with CPPRest SDK. But as per their documentation there is no timeout in websocket_client_config compared to http_client_config.

So how do I correctly specify the timeout so that the connect pplx::task will exit after the mentioned timeout?

1

There are 1 best solutions below

2
Max Dmitrichenko On BEST ANSWER

You can't. Actually CPPRest SDK seems to be abandoned. The websocket part was changed last time 3 years ago. Don't use in new projects. Consider using Boost.Beast or WebSocket++ by Zaphoyd.