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
2017-06-08 18:03:10 -07:00
parent f22895224b
commit e6c0d698ee
11 changed files with 157 additions and 192 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ private:
auto const s = ec.message();
break;
}
ws.set_option(beast::websocket::message_type{op});
ws.binary(op == beast::websocket::opcode::binary);
ws.write(b.data(), ec);
if(ec)
break;