forked from boostorg/beast
Examples use bind_front_handler
This commit is contained in:
1 parent
92add2afa6
commit
18447553ca
26 files changed
+248
-397
No files matched your search
@@ -60,10 +60,9 @@ run(http::request<Body, http::basic_fields<Allocator>> req)
|
||||
// Accept the websocket handshake
|
||||
ws_.async_accept(
|
||||
req,
|
||||
std::bind(
|
||||
beast::bind_front_handler(
|
||||
&websocket_session::on_accept,
|
||||
shared_from_this(),
|
||||
std::placeholders::_1));
|
||||
shared_from_this()));
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user