0

I'm wanting to do a lightweight push-style HTTP response in my existing Sinatra web app. Is there any mechanism that allows me to not respond to an HTTP request and keep the connection open until I wake up the connection at a future time?

Michael Neale
  • 19,248
  • 19
  • 77
  • 109
Ecton
  • 10,702
  • 2
  • 35
  • 44

3 Answers3

1

Could this help ? http://macournoyer.com/blog/2009/06/04/pusher-and-async-with-thin/

Michael Neale
  • 19,248
  • 19
  • 77
  • 109
1

You could also check out macournoyer's http://github.com/macournoyer/pusher "The Rack App that pushes" and collin's http://github.com/collin/orbited-ruby/

pmh
  • 171
  • 4
0

Also, don't forget http://github.com/raggi/async_sinatra.

Konstantin Haase
  • 25,687
  • 2
  • 57
  • 59