[Seaside] Comet

Lukas Renggli renggli at gmail.com
Thu Oct 15 18:06:34 UTC 2009


> Is there a way that Comet can be set up to push information every so often?
> This way being independent from any user input.

Sure. For example you can control any client connected to the
CTCounter application with something along the following lines from a
workspace:

CTCounter model count: 321.
CTCounter pusher javascript: [ :script |
	script << (script jQuery: #count)
		text: CTCounter model count ].

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list