https://github.com/d6y/london_class_march_2011_json_comet
https://github.com/d6y/london_class_march_2011_json_comet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d6y/london_class_march_2011_json_comet
- Owner: d6y
- Created: 2011-04-07T10:12:59.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-07T11:55:58.000Z (about 14 years ago)
- Last Synced: 2025-01-09T02:03:08.667Z (6 months ago)
- Language: Scala
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.htmlRun with:
$ sbt
> update
> jetty-run