Mosca- MQTT Broker


Stuff You Need to Know

Mosca is a Node.js MQTT Broker. That means that mosca implements the mqtt protocol, so that you can run your own mqtt server on node.js. Learn more: What is Mosca? And What is MQTT?


How to Configure

Component-specific settings:
  • Hostname or IP address (field) -  Enter the host url or IP address of the MQTT server. Defaults to 127.0.0.1.
  • Port (field) -  Port the sever is running on. Defaults to 1883.
  • Enable mqtt over websockets? (checkbox) - If checked, enter port below.
  • Websocket port (field) -  The port the ws runs on. Defaults to 1884
  • Username (field) -  Enter the username.
  • Password (field) - Enter the password.

Standard settings:

Click here to view information on standard settings.


What Happens Next?

Here is what gets sent to the outputs by color. Geronimo!

  • green: new client connected --> An Object called 'client'
  • red: client disconnected --> An Object 'client'
  • white: new message --> An Object containing { packet, client }