spec/async/websocket/connection_spec.ru in async-websocket-0.5.0 vs spec/async/websocket/connection_spec.ru in async-websocket-0.6.0

- old
+ new

@@ -5,18 +5,19 @@ def initialize(app) @app = app end def call(env) - Async::WebSocket::Server.open(env) do |server| + result = Async::WebSocket::Server.open(env) do |server| read, write = IO.pipe Process.spawn("ls -lah", :out => write) write.close read.each_line do |line| - server.driver.text(line) + server.send_text(line) end + end or @app.call(env) end end use Upgrade