/websockets-website

A simple website to test websockets connection to an MQTT broker

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

websockets-website

A simple Apache-hosted website to test websockets connection to an MQTT broker. Pulled together in support of questions on my blog post.

These files set up a websockets client, which expects to connect to a MQTT v1.4 broker on localhost port 9001. This can be changed in the file index.html.

Add the site to your instance of Apache then inspect the site in Chrome and look for traffic coming and going in the Console window.

You can also run a subscriber against your Mosquitto broker and see the messages coming back from the test site:

mosquitto_sub -h localhost -t "#" -v -i commandlinesubscriber