spec/async/websocket/upgrade.rb in async-websocket-0.9.0 vs spec/async/websocket/upgrade.rb in async-websocket-0.10.0
- old
+ new
@@ -31,10 +31,10 @@
Process.spawn("ls -lah", :out => write)
write.close
read.each_line do |line|
- connection.send_message({line: line})
+ connection.write({line: line})
end
# Gracefully close the connection:
connection.close
end or @app.call(env)