| Home | Libraries | People | FAQ | More

##### boost::mqtt5::mqtt_client::tls_context

Get the context object used in TLS/SSL connection.

###### Synopsis

    template<
        typename Ctx = TlsContext,
        std::enable_if_t<!std::is_same_v< Ctx, std::monostate >, bool > = true>
    decltype(auto)
    tls_context();

###### Remarks

This function may only be invoked when the template parameter TlsContext was configured with non-default type during the creation of a `mqtt_client`.

###### Precondition

    !std::is_same_v<TlsContext, std::monostate>