41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(
44 "ores.comms.service.subscription_handler");
55 std::shared_ptr<subscription_manager> manager);
65 boost::asio::awaitable<std::expected<std::vector<std::byte>, messaging::error_code>>
67 std::span<const std::byte> payload,
68 const std::string& remote_address)
override;
74 std::expected<std::vector<std::byte>, messaging::error_code>
75 handle_subscribe_request(std::span<const std::byte> payload,
76 const std::string& remote_address);
81 std::expected<std::vector<std::byte>, messaging::error_code>
82 handle_unsubscribe_request(std::span<const std::byte> payload,
83 const std::string& remote_address);
85 std::shared_ptr<subscription_manager> manager_;
boost::asio::awaitable< std::expected< std::vector< std::byte >, messaging::error_code > > handle_message(messaging::message_type type, std::span< const std::byte > payload, const std::string &remote_address) override
Handle a subscription protocol message.
Definition subscription_handler.cpp:34