StepFlow v0.0.23 StepFlow.Amqp.CommonEmitter View Source
A common emitter to send job orders to workers.
Link to this section Summary
Link to this section Functions
Publish a message.
Example:
StepFlow.Amqp.CommonEmitter.publish_json("my_rabbit_mq_queue", "{\"key\": \"value\"}")
Publish a message using JSON serialization before send it.
Example:
StepFlow.Amqp.CommonEmitter.publish_json("my_rabbit_mq_queue", 0, %{key: "value"})