Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d6y/london_class_march_2011_json_comet


https://github.com/d6y/london_class_march_2011_json_comet

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

This is one of the projects used at @dpp's Lift course held at Skillsmatter, London, March 2011.

The code is the state of the code at the end of the class, and as such probably isn't going to make a lot of sense but might contain something someone can find useful.

From my notes:
* Demonstation of using Lift to just pass JSON messages back and forth to a JavaScript UI.
* There's a drawMe function defined outside of Lift (in index.html) which is invoked via a scheduled ping to in the JsonOnly CometActor. The state is maintained in the MyJsonOnly session var and also in the JavaScript client via the myInfo variable.
* Files touched: comet/JsonOnly.scala, snippet/HelloWorld.scala, index.html

Run with:

$ sbt
> update
> jetty-run