Fix code sample in websocket.qbk

This commit is contained in:
Denis Andrejew
2017-07-20 08:12:14 -07:00
committed by Vinnie Falco
parent 3d1488a4e5
commit 48c57b0538
+1 -1
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());