You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
.. | ||
README.md | 5 years ago | |
firstConfig.js | 5 years ago | |
secondConfig.js | 5 years ago | |
thirdConfig.js | 5 years ago |
README.md
Moscas in the trees
This example uses three moscas deployed as a tree of broker:
- The first is the "root" and operates on port 4883.
- The second is a leaf of the first and operates on port 4884. It publishes every message it receives to the first broker using prefix '/s'.
- The third is a leaf of the second and operates on port 4885. It publishes every message it receives to the second broker using prefix '/t'.
- Start redis
- cd in this folder
- Run
mosca -c firsConfig.js -v
- Run
mosca -c secondConfig.js -v
- run
mosquitto_sub -p 4883 -t "/#" -v
- run
mosquitto_pub -t "hello/world" -m "dd" -p 4885