forked from boostorg/beast
binary, text are members of stream (API Change):
fix #446 * message_type is removed Actions Required: * Change call sites which use message_type with set_option to call stream::binary or stream::text instead.
This commit is contained in:
@@ -154,7 +154,7 @@ boost::asio::ip::tcp::socket sock{ios};
|
||||
opcode op;
|
||||
ws.read(op, buffer);
|
||||
|
||||
ws.set_option(message_type{op});
|
||||
ws.binary(op == opcode::binary);
|
||||
ws.write(buffer.data());
|
||||
buffer.consume(buffer.size());
|
||||
//]
|
||||
@@ -171,7 +171,7 @@ boost::asio::ip::tcp::socket sock{ios};
|
||||
if(fi.fin)
|
||||
break;
|
||||
}
|
||||
ws.set_option(message_type{fi.op});
|
||||
ws.binary(fi.op == opcode::binary);
|
||||
consuming_buffers<multi_buffer::const_buffers_type> cb{buffer.data()};
|
||||
for(;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user