Carl Bourne's test cases
This commit is contained in:
parent
ffe62a1ce1
commit
421ec13e95
|
|
@ -0,0 +1,13 @@
|
||||||
|
require 'rubygems'
|
||||||
|
require 'stomp'
|
||||||
|
|
||||||
|
conn = Stomp::Connection.open('guest', 'guest', 'localhost')
|
||||||
|
conn.subscribe('carl')
|
||||||
|
while true
|
||||||
|
mesg = conn.receive
|
||||||
|
|
||||||
|
puts mesg if mesg
|
||||||
|
|
||||||
|
puts mesg.body if mesg
|
||||||
|
sleep 0.0001
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
require 'rubygems'
|
||||||
|
require 'stomp'
|
||||||
|
|
||||||
|
client = Stomp::Client.new("guest", "guest", "localhost", 61613)
|
||||||
|
10000.times { |i| client.send 'carl', "Test Message number #{i}"}
|
||||||
|
client.send 'carl', "All Done!"
|
||||||
Loading…
Reference in New Issue