Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Karma/Collaboration
(view source)
Revision as of 23:29, 30 July 2009
282 bytes added
,
23:29, 30 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]]
Subzero
46
edits