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:
Vinnie Falco committed 2017-06-09 13:41:03 -07:00
1 parent ad35846c4d
commit a58e5e11dc
11 files changed
+157 -192

No files matched your search

@@ -254,8 +254,7 @@ private:
if(ec)
return fail("async_read", ec);
d.state = 3;
d.ws.set_option(
beast::websocket::message_type(d.op));
d.ws.binary(d.op == beast::websocket::opcode::binary);
d.ws.async_write(d.db.data(),
d.strand.wrap(std::move(*this)));
return;