Sha256: 818592afebdd52e62dba86a9b73332d6a6618b3299334263765527b256b06f4d
Contents?: true
Size: 416 Bytes
Versions: 5
Compression:
Stored size: 416 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rubygems' require 'stomp' client = Stomp::Client.new("failover://(stomp://:@localhost:61613,stomp://:@remotehost:61613)?initialReconnectDelay=5000&randomize=false&useExponentialBackOff=false") message = "ronaldo #{ARGV[0]}" for i in (1..300) puts "Sending message" client.publish("/topic/ronaldo", "#{i}: #{message}") puts "(#{Time.now})Message sent: #{i}" sleep 1 end
Version data entries
5 entries across 5 versions & 1 rubygems