I’ve got an App on Heroku with multiple users, who can bet each other. When a user post a new Bet the Bet should ppear on all other users Home page, so they can take action on it if they want to.
The problem is that I need the Home page to auto refresh when a new Bet is created. I don’t want to use the simple HTTP refresh thing, sp I’m thinking on using Pusher, since the App is hosted on Heroku.
But i’m not sure on how to implement this. Could anyone direct me in the right direction – preferably with some code examples.
It seems that all the examples I can find refers to a chat application 🙂
Checkout Pusher’s getting started page. This should be very straight forward.
I assume you have a
Betmodel. In that caseOn your views you should be doing,
Hope you get the idea.