1

How can I send a push event via webrick? At certain timings, I want ruby to fire some events and send it to the browser via webrick. I can embed some JavaScript code on the page in advance.

Particularly, I am trying to implement one of the techniques written under HTTP server push and Pushlet on this wikipedia page.

sawa
  • 165,429
  • 45
  • 277
  • 381

1 Answers1

2

Sawa.

If you want to send some messages to your clients, try Juggernaut2. Of course, you'll need to start separate node.js-based server to send notifications, but Juggernaut2 works with RoR really well.

Good luck.

Andrei Petrenko
  • 3,922
  • 3
  • 31
  • 53