We will start this chapter by creating a simple JavaScript client that connects to an MQTT Broker (server). We will send a test message to the the MQTT Broker and then have that message return to the same page we created the JavaScript client on. We will then publish a message from Raspberry Pi to our MQTT Broker.
It should take a couple of hours to complete this chapter.