examples/chat/client.rb in async-websocket-0.6.1 vs examples/chat/client.rb in async-websocket-0.7.0

- old
+ new

@@ -1,15 +1,15 @@ #!/usr/bin/env ruby -require 'async/reactor' +require 'async' require 'async/io/stream' require 'async/http/url_endpoint' require 'async/websocket/client' USER = ARGV.pop || "anonymous" URL = ARGV.pop || "ws://localhost:9292" -Async::Reactor.run do |task| +Async do |task| stdin = Async::IO::Stream.new( Async::IO::Generic.new($stdin) ) endpoint = Async::HTTP::URLEndpoint.parse(URL)