Sha256: e26f0f6ec36d760f72d8799cdcea00e888dfe34ce48e3ffa8514dde4677714db

Contents?: true

Size: 315 Bytes

Versions: 9

Compression:

Stored size: 315 Bytes

Contents

lib = File.join File.dirname(__FILE__), '..', 'lib'
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'fluffle'

server = Fluffle::Server.new url: 'amqp://localhost', concurrency: 5, confirms: true, mandatory: true

server.drain do |dispatcher|
  dispatcher.handle('foo') { 'bar' }
end

server.start

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fluffle-1.1.0 examples/server.rb
fluffle-1.0.1 examples/server.rb
fluffle-1.0.0 examples/server.rb
fluffle-0.9.1 examples/server.rb
fluffle-0.9.0 examples/server.rb
fluffle-0.8.1 examples/server.rb
fluffle-0.8.0 examples/server.rb
fluffle-0.7.2 examples/server.rb
fluffle-0.7.1 examples/server.rb