class RubyRabbitmqJanus::Rabbit::Listener::FromAdmin

@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>

This publisher don't post message. Is listen just an admin queue to Janus. By default is “from-janus-admin”. It's a parameter in config to this gem.

Private Instance Methods

reply() click to toggle source
# File lib/rrj/rabbit/listener/from_admin.rb, line 14
def reply
  rabbit.queue(Tools::Config.instance.queue_admin_from)
end
response_class(payload) click to toggle source
# File lib/rrj/rabbit/listener/from_admin.rb, line 18
def response_class(payload)
  Janus::Responses::Admin.new(JSON.parse(payload))
end