7#include <nlohmann/json.hpp>
18 std::function<nlohmann::json(
const std::optional<nlohmann::json> &)>;
27 std::function<void(
const std::optional<nlohmann::json> &)>;
33using Handler = std::variant<MethodCallHandler, NotificationHandler>;
std::function< void(const std::optional< nlohmann::json > &)> NotificationHandler
Type alias for notification handler functions.
std::variant< MethodCallHandler, NotificationHandler > Handler
Type alias for a handler which can be either a method call handler or a notification handler.
std::function< nlohmann::json(const std::optional< nlohmann::json > &)> MethodCallHandler
Type alias for method call handler functions.