#include <sstream> boost::beast::multi_buffer buffer; do { ws.read_some(buffer, 512); } while(!ws.is_message_done()); std::stringstream ss; ss << boost::beast::buffers(buffer.data()); std::string datas = ss.str(); buffer.consume(buffer.size());
#include <sstream> boost::beast::multi_buffer buffer; do { ws.read_some(buffer, 512); } while(!ws.is_message_done()); std::stringstream ss; ss << boost::beast::buffers(buffer.data()); std::string datas = ss.str(); buffer.consume(buffer.size());