Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hi,
My sample Code:
And Close method
If I try the code with
Url_Address="";The connect method is going into the catch block and then returning the failure.But when I'm trying to close the web socket,
I expected that the websocket close will be failed with some message and will be going in the catch block of close method.
But the line
socket_client.close().wait();is blocking forever and not exiting the code. I believe it is because of wait().Is there something I can do
like wait(5); // wait for 5 or n milli seconds ? and then exit.When I try to pass wait(5), I'm getting
error: no matching function for call to ?pplx::task<void>::wait(int)?Also tried with unsigned int and getting the following
error: no matching function for call to ?pplx::task<void>::wait(unsigned int&)?What best suggestion I can in this scenario, as we are supposed to handle socket failure as well.