diff options
author | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-06 09:04:26 -0500 |
---|---|---|
committer | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-06 09:04:26 -0500 |
commit | 8473ddcdbd6679aeb5ae8cb0cb5a95c3f25d2395 (patch) | |
tree | 5982c53c28e0cf14db621ab81c55b6e79d9361a8 /include | |
parent | 8a170b56b5c53c658af14f82111254e05062a23c (diff) |
Test closing subscriptions
Diffstat (limited to 'include')
-rw-r--r-- | include/nostr.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/nostr.hpp b/include/nostr.hpp index 5e7dbfe..326a637 100644 --- a/include/nostr.hpp +++ b/include/nostr.hpp @@ -22,7 +22,6 @@ namespace nostr { typedef std::vector<std::string> RelayList; -typedef std::unordered_map<std::string, std::vector<std::string>> TagMap; class ISigner; class NostrService; @@ -101,7 +100,7 @@ struct Filters std::vector<std::string> ids; ///< Event IDs. std::vector<std::string> authors; ///< Event author npubs. std::vector<int> kinds; ///< Kind numbers. - TagMap tags; ///< Tag names mapped to lists of tag values. + std::unordered_map<std::string, std::vector<std::string>> tags; ///< Tag names mapped to lists of tag values. std::time_t since; ///< Unix timestamp. Matching events must be newer than this. std::time_t until; ///< Unix timestamp. Matching events must be older than this. int limit; ///< The maximum number of events the relay should return on the initial query. @@ -143,6 +142,8 @@ public: RelayList activeRelays() const; + std::unordered_map<std::string, std::vector<std::string>> subscriptions() const; + /** * @brief Opens connections to the default Nostr relays of the instance, as specified in * the constructor. |