On Tue, Feb 9, 2010 at 3:28 AM, Adam Warski <a...@warski.org> wrote:

> Hello,
>
> I'm playing with comet support in lift, following the example from the
> book, and it works fine except for shutting down.
> I close the browser window where the page with the comet client was open
> and I would expect that at some point shortly after that the localShutdown
> method should be called.
>
> However this doesn't happen (at least didn't happen in the last 10
> minutes). Only when I shutdown the container, I see that the shutdown method
> was called.
>
>
A CometActor has a lifespan of the session, not a particular page.  The same
component may be visible on many different pages.  The same component may
receive messages from external source, even when the component is not being
displayed.  The CometActor is a much more pure (in the Smalltalk sense)
implementation of MVC than anything else on the web.


> Is there some config to make the clients shutdown after the page
> referencing them is no longer open?
>

If you want a CometActor to shut down if it has not appeared on any page for
a certain period of time, you can override timespan = Full(2 minutes) in the
CometActor.

Thanks,

David


>
> --
> Adam Warski
> http://www.warski.org
> http://www.softwaremill.eu
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to