[Cosmo-dev] Basic Comet demo

Tim Pokorny tim at littlebluefrog.com
Fri Jul 6 10:20:54 PDT 2007


Hello all,

I had meant to upload my basic cosmo demo into my sandbox a couple of  
days ago, but it had totally slipped my mind as I started to wander  
around the cosmo codebase. Anyhoo, I finally got around to doing it.

The client code is all javascript, and is quite simple. Sadly, the  
disconnect/reconnect doesn't work due to some dojo bugs. The hardest  
bit was finding/building the Cometd servlet that is providing the  
Bayeux back end. Still, once I realised where the Jerry folks had  
stashed the code it was also quite simple.

So, if anyone is interested, have at it: svn+ssh:// 
svn.osafoundation.org/svn/sandbox/tpokorny/jetty-6.1.4

USAGE INSTRUCTIONS:
1. Start jetty (bin/jetty run)
2. Point your browser at http://localhost:8080/basicComet
3. Enter a user name and "connect"
4. Repeat in a different tab
5. Fire off some messages and enjoy the redundancy of talking to  
yourself

Cheers,
Tim


More information about the cosmo-dev mailing list