Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tigoe committed Feb 19, 2025
1 parent 141b6ad commit fb204d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ There are many other Arduino MQTT libraries. Joël Gähwiler's [arduino-mqtt](ht
## JavaScript Clients

For JavaScript clients, there are multiple libraries. The examples here use the [Eclipse PAHO library](https://www.eclipse.org/paho/index.php?page=clients/js/index.php) and the [mqtt.js library](https://github.com/mqttjs/MQTT.js#readme). They both have similar functionality, but the mqtt.js library has a bit simpler syntax, and it can be used both in the browser and in node.js scripts.

**NOTE:** Both of these clients use webSockets to connect to an MQTT broker initially, because they come from the browser, and browsers, can't use MQTT as of this writing (Feb. 2025). So if you are using a local broker like mosquitto, make sure it's set up to receive connections via webSockets as well as via MQTT.

* [Eclipse PAHO browser examples](browser-clients/eclipse-pahojs/)
* [mqtt.js browser examples](browser-clients/mqttjs/)

Expand Down

0 comments on commit fb204d0

Please sign in to comment.