This is a simple PoC to demonstrate how to use RabbitMQ with MQTT protocol in node.js.
- Docker
- Node.js
- Yarn
- Run RabbitMQ with MQTT plugin:
docker build -t rmq-mqtt .
docker run -it -p 15672:15672 -p 5672:5672 -p 1883:1883 -v $PWD/docker/var/lib/rabbitmq:/var/lib/rabbitmq rmq-mqtt
- Install dependencies:
yarn install
- Run the producer:
yarn start:producer
- Run the consumer:
yarn start:consumer
This project is licensed under the MIT License. See the LICENSE file for details.