forked from boostorg/beast
Remove opcode from read, async_read (API Change):
fix #446 * Read signatures no longer include `opcode` * stream::got_binary and stream::got_text inform the caller if the current incoming message is binary or text. Actions Required: * Remove the `opcode` reference parameter from calls to synchronous and asynchronous read functions, replace the logic with calls to stream::got_binary and stream::got_text instead.
This commit is contained in:
1 parent
3d6574da81
commit
620ce08d6a
13 files changed
+142
-145
No files matched your search
@@ -312,7 +312,7 @@ private:
|
||||
d.db.consume(d.db.size());
|
||||
// read message
|
||||
d.state = 2;
|
||||
d.ws.async_read(d.op, d.db,
|
||||
d.ws.async_read(d.db,
|
||||
d.strand.wrap(std::move(*this)));
|
||||
return;
|
||||
|
||||
@@ -357,7 +357,7 @@ private:
|
||||
}
|
||||
// write message
|
||||
d.state = 1;
|
||||
d.ws.binary(d.op == beast::websocket::opcode::binary);
|
||||
d.ws.binary(d.ws.got_binary());
|
||||
d.ws.async_write(d.db.data(),
|
||||
d.strand.wrap(std::move(*this)));
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user