diff options
author | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-05-03 01:15:38 -0500 |
---|---|---|
committer | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-05-03 01:15:38 -0500 |
commit | ae458b29b7c5f9124e6cc4499bed60c865d7badd (patch) | |
tree | f6d24013a30beaf1b42b3143626082848ba429a9 /include | |
parent | 1291f9b045adfea3279cc26531b5d13164ca1bd8 (diff) |
Add unit test for queryRelays with callbacks
Diffstat (limited to 'include')
-rw-r--r-- | include/nostr.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/nostr.hpp b/include/nostr.hpp index a59bd33..5e7dbfe 100644 --- a/include/nostr.hpp +++ b/include/nostr.hpp @@ -191,8 +191,12 @@ public: /** * @brief Queries all open relay connections for events matching the given set of filters. * @param filters The filters to use for the query. - * @param responseHandler A callable object that will be invoked each time the client receives + * @param eventHandler A callable object that will be invoked each time the client receives * an event matching the filters. + * @param eoseHandler A callable object that will be invoked when the relay sends an EOSE + * message. + * @param closeHandler A callable object that will be invoked when the relay sends a CLOSE + * message. * @returns The ID of the subscription created for the query. * @remark By providing a response handler, the caller assumes responsibility for handling all * events returned from the relay for the given filters. The service will not store the |