From 8dbce9cd5aab9129e66a0c04e31467d172344f19 Mon Sep 17 00:00:00 2001 From: Michael Jurkoic Date: Tue, 19 Mar 2024 09:12:00 -0500 Subject: Move relay payload parsing into NostrService Preserve separation of concerns. --- include/client/web_socket_client.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/client') diff --git a/include/client/web_socket_client.hpp b/include/client/web_socket_client.hpp index f676e59..3ef2b86 100644 --- a/include/client/web_socket_client.hpp +++ b/include/client/web_socket_client.hpp @@ -45,10 +45,10 @@ public: /** * @brief Sets up a message handler for the given server. * @param uri The URI of the server to which the message handler should be attached. - * @param messageHandler A callable object that will be invoked with the subscription ID and - * the message contents when the client receives a message from the server. + * @param messageHandler A callable object that will be invoked with the payload the client + * receives from the server. */ - virtual void receive(std::string uri, std::function messageHandler) = 0; + virtual void receive(std::string uri, std::function messageHandler) = 0; /** * @brief Closes the connection to the given server. -- cgit