Has anyone written ExternalMethods or DTML pages that do server push? It was probably impossible with Zope1 because of the single thread, but with Zope2 it might be possible to start a new subthread to service each push-receiving client.
Why do I care about a Netscape-only extension/hack like server push? Because of http://www.mems-exchange.org/exchange/software/microscope/web-login.html (use the INM200 if you try it out), which uses a Java servlet to provide a Web-based microscope interface. Zope would probably have enough flexibility to make this interface less hopelessly lame.
At 01:55 PM 11/30/99 -0500, Andrew M. Kuchling wrote:
Has anyone written ExternalMethods or DTML pages that do server push? It was probably impossible with Zope1 because of the single thread, but with Zope2 it might be possible to start a new subthread to service each push-receiving client.
I haven't done server-push, but I have done immediate write (using RESPONSE.write(), which is the first thing you'll need. To be honest, though, I haven't tried it under ZServer, and I only used it once. The tricky bit is that once you start doing "hot" output, any errors are not going to be output cleanly.