examples/autobahn_client.rb in faye-websocket-0.7.5 vs examples/autobahn_client.rb in faye-websocket-0.8.0

- old
+ new

@@ -4,11 +4,11 @@ require 'cgi' require 'progressbar' EM.run { host = 'ws://localhost:9001' - ruby = RUBY_PLATFORM =~ /java/ ? 'JRuby' : 'MRI' - agent = "#{ruby} #{RUBY_VERSION}" + ruby = RUBY_PLATFORM =~ /java/ ? 'jruby' : 'ruby' + agent = "#{ruby}-#{RUBY_VERSION}" cases = 0 skip = [] socket = Faye::WebSocket::Client.new("#{host}/getCaseCount") progress = nil