[Seaside] Comet

Miguel Enrique Cobá Martinez miguel.coba at gmail.com
Mon Oct 5 18:39:13 UTC 2009


El lun, 05-10-2009 a las 12:25 -0600, Robert Sirois escribió:
> I'm attempting to create a simple little comet app that gives you the
> current date and time. I looked over the tests a bit and decided to
> emulate the CTCounter example.
> 
The book has a section about Comet that has this very example.

> How does the pusher actually work? Does it send data to the client
> only when something is updated serverside? And how does it know which
> pieces of the page to update? The ones calling methods on the class?
> 

You must trigger the update in the server. This will be pushed to all
the clients registered.
Also, you'll get a brush to update the html as you wish.

> RS
> 
> > Date: Sun, 4 Oct 2009 22:37:54 -0600
> > Subject: Re: [Seaside] Comet
> > From: renggli at gmail.com
> > To: seaside at lists.squeakfoundation.org
> > 
> > > I downloaded Seaside 3 into the latest Pharo image (via
> ScriptLoader) and
> > > fired up some of the Comet tests and ended up with some WAError -
> Streaming
> > > something or another required. I was running a Comanche server...
> is that
> > > the correct way to do it?
> > 
> > No, you need to use WAListener.
> > 
> > Lukas
> > 
> > -- 
> > Lukas Renggli
> > http://www.lukas-renggli.ch
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 
> ______________________________________________________________________
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-- 
Miguel Cobá
http://miguel.leugim.com.mx



More information about the seaside mailing list