Tuesday, February 5th, 2008

Collaborative Drawing with Sketch

Category: Comet, Dojo

Roberto Saccon has taken the Dojo example program sketch, which itself “fully implements the idea of pipelining the drawing process based on sequential commands for adding, modifying or deleting objects” and has Cometized it:

Very little additional code was necessary to combine the chat app and the drawing app into a collaborative example app. I added a single line of code to the drawing app to let it publish its demands using Comet. Another line was added to the chat app for sending incoming drawing commands to the drawing application (any additional code only served to make things prettier, more readable, or easier to extend).

The application has been tested on ErlyComet (and there is also the source code), but there are no server-side dependencies, so in theory it should run equally well on any Bayeux-compliant Comet server. And there is also a short screencast.

What is missing to make such an example application suitable for real life tasks? A lot, of course: the whole server-side logic, for one. And deciding (automatically or based on human interaction) which incoming changes should be applied to the master document (like conflict resolution in version control systems, just in quasi-real time).

Very nicely done.

Comet Sketch

Posted by Dion Almaer at 7:48 am

3.8 rating from 18 votes


Comments feed TrackBack URI

Original story is at http://cometdaily.com/2008/02/04/example-application-collaborative-drawing/

Comment by Dylan Schiemann — February 5, 2008

Thanks Dylan

Comment by Dumky — February 5, 2008

Leave a comment

You must be logged in to post a comment.