Add preliminary support for Boost 1.74

This commit is contained in:
seelabs
2020-07-22 22:09:44 -04:00
committed by Nik Bougalis
parent 8cf542abb0
commit 80860fa8f5
5 changed files with 21 additions and 10 deletions

View File

@@ -141,13 +141,14 @@ public:
{
auto const ep = getEndpoint(cfg, v2);
stream_.connect(ep);
ws_.handshake_ex(
ep.address().to_string() + ":" + std::to_string(ep.port()),
"/",
ws_.set_option(boost::beast::websocket::stream_base::decorator(
[&](boost::beast::websocket::request_type& req) {
for (auto const& h : headers)
req.set(h.first, h.second);
});
}));
ws_.handshake(
ep.address().to_string() + ":" + std::to_string(ep.port()),
"/");
ws_.async_read(
rb_,
strand_.wrap(std::bind(