mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-07-29 20:17:37 +02:00
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
This commit is contained in:
@ -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>(
|
||||
|
@ -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>(
|
||||
|
Reference in New Issue
Block a user