Sha256: 2e0757e5704bd90c0421cb66f22174cdf5cbb98af15e8139d2002cd4c7012915
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 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") puts "Subscribing to /topic/ronaldo" client.subscribe("/topic/ronaldo") do |msg| puts msg.to_s puts "----------------" end loop do sleep(1) puts "." end
Version data entries
5 entries across 5 versions & 1 rubygems