controller_mqtt_transport

Controller for transport of MQTT data between the browser (client) and server.

This controller accepts Websocket connections and out-of-band HTTP POSTs.

The HTTP POSTs must have a valid ticket. See m_mqtt_ticket on how to obtain such a ticket and more information about tickets.

The Websocket connection is a normal MQTT transport over Websocket.

For the authentication the Websocket accepts two methods:

Edit on GitHub

controller_mailinglist_export Controllers controller_nocontent

Referred by

Browser/server interaction

There are multiple ways to set up interaction between server-side Zotonic code and client-side JavaScript.

Server configuration

This chapter describes how to configure your Linux server for running Zotonic.

m_mqtt_ticket

A ticketing system for out of band MQTT posts via HTTP.