Hi hermannf,
You can either do:
roschuma
You can either do:
ws->send(msg).then([] (pplx::task<void> t)
{
try
{
t.get();
}
catch (websocket_exception e)
{
/* .... */
}
});
or (if this is your synchronization point)try
{
ws->send(msg).get();
}
catch (...)
{
/* ... */
}
Sincerely,roschuma