This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rackup -s puma | |
require 'puma' # thin does some weird caching | |
run proc { |env| | |
body = Enumerator.new do |socket| | |
socket << " "*1024 # Browsers wait for time or big data chunk | |
5.times do | |
socket << "Hello" | |
puts "Hello" |