diff --git a/doc/websocket.qbk b/doc/websocket.qbk index 49681e52..904a703c 100644 --- a/doc/websocket.qbk +++ b/doc/websocket.qbk @@ -226,7 +226,7 @@ void echo(beast::websocket::stream& 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());