Changes

282 bytes added ,  00:29, 31 July 2009
no edit summary
Line 52: Line 52:  
* To check for new users, just poll /users.
 
* To check for new users, just poll /users.
 
* If you want to see what messages $USERNAME has emitted, poll /$USERNAME/
 
* If you want to see what messages $USERNAME has emitted, poll /$USERNAME/
 +
    
Also one other way is using http PUT & GET
 
Also one other way is using http PUT & GET
 +
 +
 +
Flaws: it's all broadcast, and it's all polling.
 +
 +
Broadcast is inefficient in the network if you really only want to send a message to a single user.  Polling wastes CPU, battery, and possibly network.
 +
 +
On way to handle polling is setting a high timeout for XHR. (Thanks Lucian)
    
[[Category:GSoC]]
 
[[Category:GSoC]]
46

edits