Sha256: edbb6a5d8db387d31963b9d85cac7fcaadd8b885b52b9bea91c46a9a4d2cead6

Contents?: true

Size: 332 Bytes

Versions: 24

Compression:

Stored size: 332 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8

# Each connection respond to a TCP connection,
# hence we need to use more client.connect calls.

Thread.new do
  AMQ::Client::SocketClient.connect(:port => 5672) do |client|
    # ...
  end
end

Thread.new do
  AMQ::Client::SocketClient.connect(:port => 5672) do |client|
    # ...
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha23 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha22 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha21 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha20 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha19 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha18 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha17 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha16 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha15 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha14 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha13 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha12 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha11 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha10 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha9 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha8 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha7 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha6 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha5 examples/socket_adapter/multiple_connections.rb
amq-client-0.7.0.alpha4 examples/socket_adapter/multiple_connections.rb