Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 798 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 798 Bytes

MQTT + React Experiments

Just doing some independent play with MQTT and React.

mqtt-fun

Getting Started

Clone this repo. Then

yarn start:mosquitto

and in another window/pane:

yarn start:client

OR

with Docker:

docker-compose up

Then open http://localhost:3000 in a browser.

Et Voilà!

Why does this exist?

Last time I touched websockets was ages ago with socket.io, rabbitmq, and AngularJS. I was curious to try the mqtt package from npm, play with MQTT (mosquitto broker) and React now. This little coding kata meets those goals introducing minimal change ontop of a CRA scaffold. Subscriptions implemented with Context and Hooks.