bin/run in buschtelefon-0.4.0 vs bin/run in buschtelefon-0.4.1
- old
+ new
@@ -34,11 +34,11 @@
tattlers[:E].connect(tattlers[:D])
puts 'Feeding locals'
tattlers[:A].feed(Gossip.new('Tezos'))
-simon = NetTattler.new
-josua = NetTattler.new
+simon = NetTattler.new(host: '127.0.0.1')
+josua = NetTattler.new(host: '127.0.0.1')
remote_simon = josua.connect_remote(host: '127.0.0.1', port: simon.port)
threads = [
Thread.new { josua.listen { |gossip, source| puts "I'm Josua, I got \"#{gossip.message}\" from #{source}" } },
Thread.new { simon.listen { |gossip, source| puts "I'm Simon, I got \"#{gossip.message}\" from #{source}" } }