Can a web browser use MQTT?

Yes, as mentioned in Steve-o’s comment MQTT via websockets is very possible. There are 2 options at the moment IBM’s MQ 7.5 comes with websockets support, you can find details here. The Mosquitto broker has a javascript client with an example running here. To answer your second question lighttpd has a websockets module that can … Read more

Is message order preserved in MQTT messages?

A summary of the message ordering capabilities in MQTT 3.1.1 can be found in the specification itself here. In summary: no guarantees are made about the relative ordering of messages published with different QoS values. (for example, QoS 0 can over take QoS 2 for example as it involves a single packet rather than the … Read more

What is the difference between MQTT broker and Apache Kafka

The main motive behind Kafka is scalability. MQTT is a protocol with public specification for lightweight client / message broker communications, allowing publish/subscribe exchanges. Multiple implementations of client libraries and brokers (Mosquitto, JoramMQ…) exist and are virtually compatible. MQTT just specifies the transport, and vaguely the application part (i.e. how data is handled and possibly … Read more

How to test the `Mosquitto` server?

In separate terminal windows do the following: Start the broker: mosquitto Start the command line subscriber: mosquitto_sub -v -t ‘test/topic’ Publish test message with the command line publisher: mosquitto_pub -t ‘test/topic’ -m ‘helloWorld’ As well as seeing both the subscriber and publisher connection messages in the broker terminal the following should be printed in the … Read more

Direct MQTT vs MQTT over WebSocket [closed]

You should only need to run MQTT over websockets if you intend to publish/subscribe to messages directly from within webapps (in page). Basically I would run pure MQTT for everything and only add the websockets if you actually need it. For all the non-browser languages the MQTT client libraries only use native MQTT. For Javascript … Read more