hi all, i''d like to updates some values on my site in realtime as other users change them. So when one visitor moves a slider the others will see a value updated in realtime. How should i go about this? One thing i can do is use periodically_call_remote to check if values have changed. But i think this will be a bit inefficient as i need to update about 10 times a second. I i would rather do a remote_function that blocks (on the server) until someone changes a value. I''ve tried this but the whole server seems to block (i''m using a condition variable). What would be the ''correct'' way to go about this? thanks, fokke
There is no easy way to do that, google for RealTimeRails or Comet to see about possible approaches On 5/23/06, Fokke de Jong <fokke@waag.org> wrote:> > hi all, > > i''d like to updates some values on my site in realtime as other users > change them. So when one visitor moves a slider the others will see a > value updated in realtime. How should i go about this? One thing i > can do is use periodically_call_remote to check if values have > changed. But i think this will be a bit inefficient as i need to > update about 10 times a second. I i would rather do a remote_function > that blocks (on the server) until someone changes a value. I''ve tried > this but the whole server seems to block (i''m using a condition > variable). What would be the ''correct'' way to go about this? > > > thanks, > fokke > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/2eeebc77/attachment.html
thanks, i fwill check it out! fokke On 23-mei-2006, at 12:29, Roberto Saccon wrote:> There is no easy way to do that, google for RealTimeRails or Comet > to see about possible approaches > > On 5/23/06, Fokke de Jong < fokke@waag.org> wrote: > hi all, > > i''d like to updates some values on my site in realtime as other users > change them. So when one visitor moves a slider the others will see a > value updated in realtime. How should i go about this? One thing i > can do is use periodically_call_remote to check if values have > changed. But i think this will be a bit inefficient as i need to > update about 10 times a second. I i would rather do a remote_function > that blocks (on the server) until someone changes a value. I''ve tried > this but the whole server seems to block (i''m using a condition > variable). What would be the ''correct'' way to go about this? > > > thanks, > fokke > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Roberto Saccon > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/8a35849c/attachment.html