From ae458b29b7c5f9124e6cc4499bed60c865d7badd Mon Sep 17 00:00:00 2001 From: Michael Jurkoic Date: Fri, 3 May 2024 01:15:38 -0500 Subject: Add unit test for queryRelays with callbacks --- include/nostr.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/nostr.hpp') 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 -- cgit