Beast Logo

PrevUpHomeNext

websocket::stream::async_accept

Start reading and responding to a WebSocket HTTP Upgrade request.

template<
    class AcceptHandler>
void-or-deduced
async_accept(
    AcceptHandler&& handler);

template<
    class ConstBufferSequence,
    class AcceptHandler>
void-or-deduced
async_accept(
    ConstBufferSequence const& buffers,
    AcceptHandler&& handler);

Start responding to a WebSocket HTTP Upgrade request.

template<
    class Body,
    class Fields,
    class AcceptHandler>
void-or-deduced
async_accept(
    http::request< Body, Fields > const& request,
    AcceptHandler&& handler);

PrevUpHomeNext