Seems to me you need to track a datetime in each client session, because 
your 'seen' is relative to who's looking.

In each session, keep the datetime used, maybe in a hidden field, 
because your last seen is different from my last seen (I opened the view 
5 seconds after you).

When your periodically-call-remote evokes, pass in your datetime and 
server side finds the next message whose datetime is greater the 
datetime passed in, then pass back the message and this new datetime, 
rinse, repeat every 10 seconds.

When I timeout and exec the periodically-call-remote 5 seconds later, it 
takes my datetime and does the same thing.

Perhaps?

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to