diff --git a/include/async_mqtt/endpoint.hpp b/include/async_mqtt/endpoint.hpp index ab89c9f50..45c66cbe4 100644 --- a/include/async_mqtt/endpoint.hpp +++ b/include/async_mqtt/endpoint.hpp @@ -112,6 +112,16 @@ class basic_endpoint : public std::enable_shared_from_this::type; + /** + * @brief create + * @tparam Args Types for the next layer + * @param ver MQTT protocol version client can set v5 or v3_1_1, in addition + * server can set undetermined + * @param args args for the next layer. There are predefined next layer types: + * \n @link protocol::mqtt @endlink, @link protocol::mqtts @endlink, + * @link protocol::ws @endlink, and @link protocol::wss @endlink. + * @return shared_ptr of basic_endpoint. + */ template static std::shared_ptr create( protocol_version ver,