Search code examples
rubypushpush-notificationserver-pushwebrick

Sending a push event from webrick


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.


Solution

  • 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.