Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'bunny'
- b_con = Bunny.new(host: 'localhost', port: 5672, logging: true)
- b_con.start
- b_q = b_con.queue('events')
- b_ex = b_con.exchange('events', type: :topic)
- b_ex.publish('message!!', key: 'usermanager.user.login')
Add Comment
Please, Sign In to add comment