From 1e57b3b8a69030faaf9a5d7f7c522bb1a8179c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korina=20=C5=A0imi=C4=8Devi=C4=87?= Date: Tue, 8 Oct 2024 13:27:28 +0200 Subject: [PATCH] Make websocket examples clearer by providing a path example Summary: related to T13767, #15 Reviewers: ivica Reviewed By: ivica Subscribers: iljazovic, miljen Differential Revision: https://repo.mireo.local/D31707 --- example/hello_world_over_websocket_tcp.cpp | 2 +- example/hello_world_over_websocket_tls.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/hello_world_over_websocket_tcp.cpp b/example/hello_world_over_websocket_tcp.cpp index e55edad..ed5d069 100644 --- a/example/hello_world_over_websocket_tcp.cpp +++ b/example/hello_world_over_websocket_tcp.cpp @@ -25,7 +25,7 @@ int main() { > client(ioc); // 8083 is the default Webscoket/TCP MQTT port. - client.brokers("", 8083) + client.brokers("", 8083) // Path example: localhost/mqtt .async_run(boost::asio::detached); client.async_publish( diff --git a/example/hello_world_over_websocket_tls.cpp b/example/hello_world_over_websocket_tls.cpp index 49c62ad..65a7f75 100644 --- a/example/hello_world_over_websocket_tls.cpp +++ b/example/hello_world_over_websocket_tls.cpp @@ -78,7 +78,7 @@ int main() { > client(ioc, std::move(context)); // 8884 is the default Websocket/TLS MQTT port. - client.brokers("", 8884) + client.brokers("", 8884) // Path example: localhost/mqtt .async_run(boost::asio::detached); client.async_publish(