Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Karma/Collaboration
(view source)
Revision as of 12:07, 3 August 2009
310 bytes added
,
12:07, 3 August 2009
no edit summary
Line 1:
Line 1:
−
<noinclude>{{GoogleTrans-en}}{{
TOCleft
}}</noinclude>
+
<noinclude>{{GoogleTrans-en}}{{
TOCright
}}</noinclude>
== Objective ==
== Objective ==
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]]
+
[[Category:Collaboration]]
FGrose
Bureaucrats
,
Check users
,
Administrators
,
Widget editors
8,288
edits