Monday, May 12th, 2008
Live Chess with Comet
Piotr Dachtera took his 64pola.pl, and created a scalable version using Comet. Dylan reports it as “a Jetty-powered Comet app that uses dojox.cometd on the client-side. It’s a solid implementation that shows chess moves in real-time, and to date is the best all-around Comet game I’ve seen that is live to the world.”
Mathieu Nouzareth then commented that Cafe.com, a Flash based gaming platform also uses Jetty and Comet techniques (compared to AMF etc).













There is also the GWT comet games GPokr, KDice, and XSketch, GPokr in particular was done a long time ago.
Crashes Firefox 2.
Upon entering the game after clicking “PLAY LIVE!”, it opens up a new window and crashes my browser (Firefox 2.0.0.14). You can easily reproduce this bug if you’re on Mac OS X + Firefox 2 + Firebug. If you disable Firebug, then you can enter the game. I found that this is a bug on Dojo’s part. There is code in their 1.0+ release that Mac OS X Firebug doesn’t like and it crashes the browser.
So I opened it up in Webkit revision 33029, and the games don’t even work. Nothing moves, no data is being pushed to the client-side. You can easily find out by opening up Charles (http debugging proxy).
Epic fail.
It’s a pretty nice one!
Something like this is simple compared to what I did with Ajax and Server Sent DOM Events in Opera 9 - a scorched earth clone with online play, and that was back in January 2007, so I would dare to say it was a world first in JavaScript based games with online multiplay. Prove me wrong if you can =)
Here is a tutorial getting GWT to work with Grizzly Comet GWT + GRIZZLY + COMET
Where I can download thic “Live chess”?