OffBroadway.MQTT v0.1.0 OffBroadway.MQTT.Topic View Source

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

This enables us to provide a back-pressure mechanism for MQTT, even though it's not supported by MQTT itself.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Fetches messages from a topic

Stores a new message in the topic

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Fetches messages from a topic

Link to this function

start_link(topic_server_name) View Source

Stores a new message in the topic