MQTT CLI - Nice little command line tool for interacting with your MQTT Brokers.
mq connect -h wss://livechat.autonom8.com:443 -u jagadish
Prompt for password Connected
onConnect > publish / subscribe onDisconnect > unsubscribe if subscribed
mq status Conencted Host: Port: Username:
mq publish
mq subscribe
Flow:
Connect to mq server
Send subscribe request for requested topic(s)
Wait for messages
On MQ Server:
onConnect
onSubscribe -> add client to the subscribers list
mqtt broker is not connected not authorized to publish / subscribe
topics if (not already subscribed) {
}