Can anyone explain how does the real time response works in Twitter ?
Like when u search in twitter while viewing the result u get real-time updates saying
“7 more people tweeted” .
I have noticed there is no AJAX call being made.
Can someone tell me how this works and is it possible to implement such a thing using PHP ?
Can anyone explain how does the real time response works in Twitter ? Like
Share
Firebug shows that it is making asynchronous calls to the server:
http://integratedsearch.twitter.com/search.html?_=1262187845554&q=new+year&since_id=7199106684&refresh=true&callback=processSummizeRefresh
Note the variables:
All it’s doing is looking for any matches to the
qvariable whose ID is greater thansince_idand returning a count. If you load the results, by clicking “123 new tweets,” thesince_idwill be updated to reflect the new latest ID value.