Karma/Collaboration

From Sugar Labs

Jump to: navigation, search

Contents

Objective

To provide a mechanism to enable collaboration using JavaScript. On this way, we'll be able to support collaboration on Karma lessons.

Use cases

Examples:

The problem

How to create an easy way to write collaborative JavaScript to be run client-side in browsers.

Keep in mind

Possible solutions

It would be ideally as simple as possible and as web-like as possible.

lucian has suggested 2 possible ways[1]:


bemasc


m_stone:

Collaboration data:

Bemasc has suggested to store the messages using files and directories


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)

Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations