Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmpwizard/lift_named_comet
Package to add named comet actors to your lift application
https://github.com/fmpwizard/lift_named_comet
Last synced: 21 days ago
JSON representation
Package to add named comet actors to your lift application
- Host: GitHub
- URL: https://github.com/fmpwizard/lift_named_comet
- Owner: fmpwizard
- Created: 2011-07-29T03:29:39.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-29T03:29:50.000Z (over 13 years ago)
- Last Synced: 2024-04-16T06:22:03.408Z (8 months ago)
- Language: Scala
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is a sample Lift application that shows one way to use Comet Actors to update
the UI only when there is new information coming through a REST interface.It uses named actors, actor dispatchers and the REST support that comes with Lift
To use it do:
git clone git://github.com/fmpwizard/comet_rest_example.git
cd comet_rest_example
sbt
update
jetty-runGo with the browser to:
http://127.0.0.1:8080/browser-details/2.4.0.1090
On another terminal screen do:
cd comet_rest_example
while true;
do curl http://127.0.0.1:8080/v1/rest/browsertests/id2 -H"Content-Type: application/json" -T json1.txt ;
sleep 1;
curl http://127.0.0.1:8080/v1/rest/browsertests/id2 -H"Content-Type: application/json" -T json2.txt ;
sleep 1;
done;And go to the browser and notice how just two cells change values.
Enjoy and feel free to send feedback on:
* The lift mailing list
* [email protected] (I use gmail so don't bother sending spam :) )
* on my blog at http://fmpwizard-scala.posterous.com/