Fix code sample in websocket.qbk
This commit is contained in:
parent
3d1488a4e5
commit
48c57b0538
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user