7#if !defined(ASYNC_MQTT_PREDEFINED_LAYER_WS_HPP)
8#define ASYNC_MQTT_PREDEFINED_LAYER_WS_HPP
10#include <async_mqtt/predefined_layer/mqtt.hpp>
20namespace as = boost::asio;
21namespace bs = boost::beast;
29using ws = bs::websocket::stream<mqtt>;
51 typename CompletionToken = as::default_completion_token_t<
52 typename bs::websocket::stream<NextLayer>::executor_type
55#if !defined(GENERATING_DOCUMENTATION)
56BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(
62 bs::websocket::stream<NextLayer>& layer,
63 std::string_view host,
64 std::string_view port,
65 std::string_view path,
66 CompletionToken&& token = as::default_completion_token_t<
67 typename bs::websocket::stream<NextLayer>::executor_type
88 typename CompletionToken = as::default_completion_token_t<
89 typename bs::websocket::stream<NextLayer>::executor_type
92#if !defined(GENERATING_DOCUMENTATION)
93BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(
99 bs::websocket::stream<NextLayer>& layer,
100 std::string_view host,
101 std::string_view port,
102 CompletionToken&& token = as::default_completion_token_t<
103 typename bs::websocket::stream<NextLayer>::executor_type
109#include <async_mqtt/predefined_layer/impl/ws_handshake.hpp>
sys::error_code error_code
sys is a namespace alias of boost::sytem.
Definition error.hpp:56
async_underlying_handshake(as::basic_stream_socket< Socket, Executor > &layer, std::string_view host, std::string_view port, CompletionToken &&token=as::default_completion_token_t< Executor >{})
resovling name and connect TCP layer
bs::websocket::stream< mqtt > ws
Type alias of boost::beast::websocket::stream of mqtt.
Definition ws.hpp:29