forked from boostorg/beast
Fix code sample in websocket.qbk
This commit is contained in:
committed by
Vinnie Falco
parent
3d1488a4e5
commit
48c57b0538
@@ -226,7 +226,7 @@ void echo(beast::websocket::stream<boost::asio::ip::tcp::socket>& ws)
|
|||||||
{
|
{
|
||||||
beast::streambuf sb;
|
beast::streambuf sb;
|
||||||
beast::websocket::opcode::value op;
|
beast::websocket::opcode::value op;
|
||||||
ws.read(sb);
|
ws.read(op, sb);
|
||||||
|
|
||||||
ws.set_option(beast::websocket::message_type{op});
|
ws.set_option(beast::websocket::message_type{op});
|
||||||
ws.write(sb.data());
|
ws.write(sb.data());
|
||||||
|
Reference in New Issue
Block a user