Fix code sample in websocket.qbk

This commit is contained in:
Denis Andrejew authored and Vinnie Falco committed 2017-01-08 10:15:20 -05:00
1 parent 58802f4d6d
commit 2eb4b0c6cd
1 file changed
+1 -1
+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());