aboutsummaryrefslogtreecommitdiff
path: root/include/client/web_socket_client.hpp
diff options
context:
space:
mode:
authorLibravatar Michael Jurkoic <mjjurkoic@gmail.com>2024-03-17 19:30:15 -0500
committerLibravatar Michael Jurkoic <mjjurkoic@gmail.com>2024-03-17 19:30:15 -0500
commit299a2567430dd96800d6b3ca81a3d198be4a18fd (patch)
tree2fd1567b53f23ca10c66e2b06c58e32a14d9db19 /include/client/web_socket_client.hpp
parent9832867f9ed9dbcc7ffbd135291bc54c153640b0 (diff)
Begin defining relay message handling
Diffstat (limited to 'include/client/web_socket_client.hpp')
-rw-r--r--include/client/web_socket_client.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/client/web_socket_client.hpp b/include/client/web_socket_client.hpp
index 4e6cb8b..f676e59 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 when the client receives a
- * message from the server.
+ * @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.
*/
- virtual void receive(std::string uri, std::function<void(const std::string&)> messageHandler) = 0;
+ virtual void receive(std::string uri, std::function<void(const std::string&, const std::string&)> messageHandler) = 0;
/**
* @brief Closes the connection to the given server.