Beast Logo

PrevUpHomeNext

websocket::stream::async_handshake

Start an asynchronous operation to send an upgrade request and receive the response.

template<
    class HandshakeHandler>
async_return_type< HandshakeHandler, void(error_code)>
async_handshake(
    string_view const& host,
    string_view const& target,
    HandshakeHandler&& handler);

template<
    class HandshakeHandler>
async_return_type< HandshakeHandler, void(error_code)>
async_handshake(
    response_type& res,
    string_view const& host,
    string_view const& target,
    HandshakeHandler&& handler);

PrevUpHomeNext