Sha256: 6ddb8294659103dd8bb0302433a241e1f8e1bd199927a5d18ef871a21d9317e8
Contents?: true
Size: 348 Bytes
Versions: 88
Compression:
Stored size: 348 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 require "rubygems" require "bunny" conn = Bunny.new conn.start ch = conn.create_channel q = ch.queue("bunny.examples.hello_world", :auto_delete => true) q.subscribe do |delivery_info, properties, payload| puts "Received #{payload}" end q.publish("Hello!", :routing_key => q.name) sleep 1.0 conn.close
Version data entries
88 entries across 88 versions & 1 rubygems