cpprestsdk
cpprestsdk copied to clipboard
receive json data to websocket
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")] });