diff options
author | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-03-17 19:12:30 -0500 |
---|---|---|
committer | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-03-17 19:12:30 -0500 |
commit | c7096828e62fcea63120504b867150130377ab75 (patch) | |
tree | eb8342be06550143d2349022f4b395f71f507f4a /include/nostr.hpp | |
parent | fea9005732607ee58a4bcb113b1805028954498a (diff) |
Provide methods to close all open subscriptions
Diffstat (limited to 'include/nostr.hpp')
-rw-r--r-- | include/nostr.hpp | 8 |
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 |