aboutsummaryrefslogtreecommitdiff
path: root/include/nostr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/nostr.hpp')
-rw-r--r--include/nostr.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/nostr.hpp b/include/nostr.hpp
index c410046..8a9d4c9 100644
--- a/include/nostr.hpp
+++ b/include/nostr.hpp
@@ -161,6 +161,14 @@ public:
std::tuple<RelayList, RelayList> closeSubscription(std::string subscriptionId);
/**
+ * @brief Closes all open subscriptions on all open relay connections.
+ * @returns A tuple of `RelayList` objects, of the form `<successes, failures>`, indicating
+ * to which relays the message was sent successfully, and which relays failed to receive the
+ * message.
+ */
+ std::tuple<RelayList, RelayList> closeSubscriptions();
+
+ /**
* @brief Closes all open subscriptions on the given relays.
* @returns A tuple of `RelayList` objects, of the form `<successes, failures>`, indicating
* to which relays the message was sent successfully, and which relays failed to receive the