Method: Propono::Client#publish

Defined in:
lib/propono/components/client.rb

#publish(topic, message, options = {}) ⇒ Object

Publishes a new message into the Propono pub/sub network.

This requires a topic and a message. By default this pushes out AWS SNS.

Parameters:

  • topic (String)

    The name of the topic to publish to.

  • message (String)

    The message to post.



52
53
54
55
# File 'lib/propono/components/client.rb', line 52

def publish(topic, message, options = {})
  suffixed_topic = "#{topic}#{config.queue_suffix}"
  Publisher.publish(aws_client, config, suffixed_topic, message, options)
end