Giter Club home page Giter Club logo

liftnamedcomet's Introduction

Update

This library/module was integrated into Lift core on version 2.5. I hope to write an upgrade doc soon, but in the meantime,

the file names you'll need to use are:

NamedCometActorSnippet.scala  //have your snippet (the ones that adds the comet to the page) extend this
NamedCometActorTrait.scala //have your comet class extend this
NamedCometListener.scala //this is the singleton with useful methods to get the list of comet actors

Thanks

This project is a library that aims at making the use of named comet actors in Lift a little easier.

Usage:

On your lift project you can add the dependency as:

resolvers ++= Seq("snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
                "releases"  at "http://oss.sonatype.org/content/repositories/releases")

libraryDependencies ++= Seq("com.fmpwizard" %% "lift-named-comet" % "0.3")

For a sample project using this library visit: Lift Auction

Documentation:

You can read this blog post to which describes how to use it:: fmpwizard's blog

Features:

  • You can have a CometActor of the same class, but different instances of it on different tabs.
  • Only the CometActor that is going to update the Ui is going to get a message.
  • You can send messages to a CometActor from other sessions (including stateless RESTful end points.
  • When a CometActor has not been present on a page after a defined lifespan, it is removed from the central registry.
  • Hides the whole implementation so the user can focus on the CometActor functionality.

Enjoy

Diego

liftnamedcomet's People

Contributors

fmpwizard avatar

Stargazers

Marko Elezović avatar Gordan Valjak avatar  avatar Martin Ellis avatar  avatar Tim Nelson avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

gvaljak melezov

liftnamedcomet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.