rack stream:不再维护 机架式流 源码
机架流 概述 rack-stream是用于构建多协议流式机架端点的中间件。 安装 # Gemfile gem 'rack-stream' bundle 例子 # config.ru require 'rack/stream' class App include Rack :: Stream :: DSL stream do after_open do count = 0 @timer = EM . add_periodic_timer ( 1 ) do if count != 3 chunk "chunky #{ count } \n " count += 1 else # Connection isn't closed until #close is ca
用户评论