Sha256: 9617fc7dd522ae61b486909789d57ebc44c34c6bce1fb76627484e8ba73c03d2

Contents?: true

Size: 282 Bytes

Versions: 12

Compression:

Stored size: 282 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

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

server.start

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fluffle-0.6.3 examples/server.rb
fluffle-0.6.2 examples/server.rb
fluffle-0.6.1 examples/server.rb
fluffle-0.6.0 examples/server.rb
fluffle-0.5.2 examples/server.rb
fluffle-0.5.1 examples/server.rb
fluffle-0.5.0 examples/server.rb
fluffle-0.4.0 examples/server.rb
fluffle-0.3.1 examples/server.rb
fluffle-0.3.0 examples/server.rb
fluffle-0.2.2 examples/server.rb
fluffle-0.2.1 examples/server.rb