Dennis de Greef edited this page Nov 10, 2015 · 9 revisions

Welcome to the mosca wiki!

What is Mosca:

Mosca is a MQTT broker. That means that mosca implements the mqtt protocol, so that you can run your own mqtt server on node.js.



  • MQTT 3.1 and 3.1.1 compliant.
  • QoS 0 and QoS 1.
  • Various storage options for QoS 1 offline packets, and subscriptions.
  • As fast as it is possible.
  • Usable inside ANY other node.js app.
  • Supports Node.js v0.10 and v0.12.
  • Supports io.js v1.x and v2.x and v3.x (please do not use v3.1.0)

Does it scale?

Eventhough Mosca is a MQTT broker, if you need to scale it out, you need to use another broker as it does not have any clustering support in itself. Some of the brokers it supports are the following:

  • Redis, a key/value store created by @antirez.
  • MongoDB, a scalable, high-performance, document-oriented database.
  • Mosquitto and all implementations of the MQTT protocol.
  • RabbitMQ and all implementations of the AMQP protocol.
  • ZeroMQ to use Mosca in a P2P fashion.

Mosca can operate BOTH as a standalone version or as a node.js module.

Get started

To get started head right to the basic usage page.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.