Fix code sample in websocket.qbk

This commit is contained in:
Denis Andrejew 2016-10-21 01:36:13 +02:00 committed by Vinnie Falco
parent 3d1488a4e5
commit 48c57b0538

View File

@ -226,7 +226,7 @@ void echo(beast::websocket::stream<boost::asio::ip::tcp::socket>& ws)
{
beast::streambuf sb;
beast::websocket::opcode::value op;
ws.read(sb);
ws.read(op, sb);
ws.set_option(beast::websocket::message_type{op});
ws.write(sb.data());