Sinatra streaming example Be sure to use an event-based server. Installation bundle install bundle exec rackup