Karma/Collaboration: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{GoogleTrans-en}}{{ | <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]] | |||