Beast Logo

PrevUpHomeNext
websocket::stream::async_handshake

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

template<
    class HandshakeHandler>
void-or-deduced
async_handshake(
    string_view host,
    string_view target,
    HandshakeHandler&& handler);

template<
    class HandshakeHandler>
void-or-deduced
async_handshake(
    response_type& res,
    string_view host,
    string_view target,
    HandshakeHandler&& handler);

PrevUpHomeNext