From c7096828e62fcea63120504b867150130377ab75 Mon Sep 17 00:00:00 2001 From: Michael Jurkoic Date: Sun, 17 Mar 2024 19:12:30 -0500 Subject: Provide methods to close all open subscriptions --- include/nostr.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/nostr.hpp') diff --git a/include/nostr.hpp b/include/nostr.hpp index c410046..8a9d4c9 100644 --- a/include/nostr.hpp +++ b/include/nostr.hpp @@ -160,6 +160,14 @@ public: */ std::tuple closeSubscription(std::string subscriptionId); + /** + * @brief Closes all open subscriptions on all open relay connections. + * @returns A tuple of `RelayList` objects, of the form ``, indicating + * to which relays the message was sent successfully, and which relays failed to receive the + * message. + */ + std::tuple closeSubscriptions(); + /** * @brief Closes all open subscriptions on the given relays. * @returns A tuple of `RelayList` objects, of the form ``, indicating -- cgit