A simple demo using pomelo and mqttconnector
In order to test this demo, you should install mqtt globally using following command
npm install -g mqtt
after start pomelo, on one terminal, run following command to subscribe
mqtt sub -t "AnyTopic" -h "localhost" -p 3010
on another, run following command to publish a message
mqtt pub -t "AnyTopic" -h "localhost" -p 3010 -m "Hello World"