Skip to content

Commit

Permalink
Make websocket examples clearer by providing a path example
Browse files Browse the repository at this point in the history
Summary: related to T13767, #15

Reviewers: ivica

Reviewed By: ivica

Subscribers: iljazovic, miljen

Differential Revision: https://repo.mireo.local/D31707
  • Loading branch information
ksimicevic committed Oct 9, 2024
1 parent 0e62d8f commit 1e57b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/hello_world_over_websocket_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main() {
> client(ioc);

// 8083 is the default Webscoket/TCP MQTT port.
client.brokers("<your-mqtt-broker>", 8083)
client.brokers("<your-mqtt-broker-path>", 8083) // Path example: localhost/mqtt
.async_run(boost::asio::detached);

client.async_publish<async_mqtt5::qos_e::at_most_once>(
Expand Down
2 changes: 1 addition & 1 deletion example/hello_world_over_websocket_tls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int main() {
> client(ioc, std::move(context));

// 8884 is the default Websocket/TLS MQTT port.
client.brokers("<your-mqtt-broker>", 8884)
client.brokers("<your-mqtt-broker-path>", 8884) // Path example: localhost/mqtt
.async_run(boost::asio::detached);

client.async_publish<async_mqtt5::qos_e::at_most_once>(
Expand Down

0 comments on commit 1e57b3b

Please sign in to comment.