An Interactive Ruby shell for STOMP
Start it supplying user, password, stomp host and port - see the --help information for details.
$ stomp-irb -s stomp --port 6163 Interactive Ruby shell for STOMP Type 'help' for usage instructions >> subscribe :topic, "foo.bar" Current Subscriptions: /topic/foo.bar => nil >> topic "foo.bar", "hello" => nil <<stomp>> hello >> recv_callback {|f| puts "Received: #{f.body} from #{f.headers["destination"]}"} >> topic "foo.bar", "hello" => nil <<stomp>> hello Received: hello from /topic/foo.bar >> verbose => true >> topic "foo.bar", "hello world" => nil <<20:02:07:/topic/foo.bar>> hello world
2011/01/20 - Add persistence support to queue sending
Apache 2.0
R.I.Pienaar <[email protected]> / @ripienaar / http://www.devco.net