cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

receive json data to websocket

Open JHyunCau opened this issue 3 years ago • 0 comments

Hi, I'm facing an error that occurs when I reveivce json data on websocket. The error is 'trace/breakpoint trap (core dumped)'. Could I get json data to websocket??

client.set_message_handler([](websocket_incoming_message in_msg){ cout << "receiving message" << endl; json::value in_obj = json::value::parse(conversions::to_string_t(in_msg.extract_string().get())); json::value seq = in_obj[U("sequence")] });

JHyunCau avatar Dec 18 '22 23:12 JHyunCau