Hi,
for a project I have to connect a C++ Rest SDK 2.2 client with a C# 4.5. WebSocket server, which works well, except:
if the server closes the connection, the client dies with an unhandled (task) exception.
Since I have no experience with the C++ Rest SDK so far, can someone please show me the code,
to catch this exception?
It would have to be something like
for a project I have to connect a C++ Rest SDK 2.2 client with a C# 4.5. WebSocket server, which works well, except:
if the server closes the connection, the client dies with an unhandled (task) exception.
Since I have no experience with the C++ Rest SDK so far, can someone please show me the code,
to catch this exception?
It would have to be something like
ws->send(msg).then([] (?)
{
try
{
?.get()
}
catch(...)
{
}
});
Thank you in advance,