OffBroadway.MQTT v0.1.0 API Reference

Modules

Example

Broadway.start_link(MyBroadway,
  name: MyBroadway,
  producers: [
    default: [
      module:
        {OffBroadway.MQTT.Producer,
        topic: "my/topic",
        qos: 0,
        connection: [
          host: "localhost",
          port: 1883
        ]},
      stages: 2
    ]
  ],
  processors: [
    default: []
  ]
)

Abstraction for a MQTT topic. All incoming messages from the broker are enqueued. They are dequeued when there is a demand from consumers.