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
Link to this function
child_spec(init_arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
fetch(topic, demand) View Source
Fetches messages from a topic
Link to this function
start_link(topic_server_name) View Source
Link to this function
store(topic, message) View Source
Stores a new message in the topic