[Seaside] disconnecting Comet?
Lukas Renggli
renggli at gmail.com
Wed Jun 23 21:02:24 UTC 2010
That could, and probably should be made to work like you wrote. Can
you create a bug report?
Until then you need to store your pusher like this:
html comet
assignTo: 'mainPusher';
pusher: mainPusher;
connect
And disconnect it like this:
html comet
alias: 'mainPusher';
disconnect
This assigns the pusher object to a variable on the client side, and
calls the same object again to disconnect.
Lukas
On 23 June 2010 19:01, Bob Arning <arning at charm.net> wrote:
> Hi,
>
> Once I have connected Comet to a page, is there a way to disconnect it
> without completely re-rendering the page? I have this in my response
> generating code:
>
> needPusher ifTrue: [
> html document
> addLoadScript: (html comet
> pusher: mainPusher;
> connect)
> ] ifFalse: [
> html document
> addLoadScript: (html comet pusher: mainPusher;
> disconnect)
> ].
>
> and it will start a pusher, but doesn't seem to be able to stop one (like
> make the browser loading indicator stop spinning).
>
> Thoughts?
>
> Thank,
> Bob
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
--
Lukas Renggli
www.lukas-renggli.ch
More information about the seaside
mailing list