diff options
author | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-03-19 09:12:00 -0500 |
---|---|---|
committer | Michael Jurkoic <mjjurkoic@gmail.com> | 2024-03-19 09:12:00 -0500 |
commit | 8dbce9cd5aab9129e66a0c04e31467d172344f19 (patch) | |
tree | a5f76cebf5af6928ca4c6778920a8b09b7e96bec /include/client | |
parent | 6dde23e6c66e846c64d49c5258f0dbf44e3d0374 (diff) |
Move relay payload parsing into NostrService
Preserve separation of concerns.
Diffstat (limited to 'include/client')
-rw-r--r-- | include/client/web_socket_client.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<void(const std::string&, const std::string&)> messageHandler) = 0; + virtual void receive(std::string uri, std::function<void(const std::string&)> messageHandler) = 0; /** * @brief Closes the connection to the given server. |