Is there a way to flush html to the wire in Sinatra
Posted
by thismatt
on Stack Overflow
See other posts from Stack Overflow
or by thismatt
Published on 2010-06-12T04:04:59Z
Indexed on
2010/06/12
4:13 UTC
Read the original article
Hit count: 171
I have a Sinatra app with a long running process (a web scraper). I'd like the app flush the results of the crawler's progress as the crawler is running instead of at the end.
I've considered forking the request and doing something fancy with ajax but this is a really basic one-pager app that really just needs to output a log to a browser as it's happening. Any suggestions?
© Stack Overflow or respective owner