From: Adam R. <Ad...@Kn...> - 2004-01-31 00:41:19
|
Whoops, I'm scatterbrained today. I just wrote: > > > A key difference is that in mod_pubsub, a single push connection = can > > > be shared by several open browser windows in the same browser = process. > > Yes that is cool. Multiplexing is on my TODO. > Multiplexing is simple and can even be done from a completely = single-threaded > application; take a look at the pubsub.py server in mod_pubsub for an > example of how to do this. This is certainly true for server-side multiplexing. Client-side multiplexing is a much trickier proposition. We use = cookies, setTimeout(), and window.open() to share JavaScript object references between windows. There is a slightly broken leader election protocol to decide which window holds the persistent connection at any given = time. If all goes well, persistent connection migrates automatically when windows are closed or new windows are opened. Adam |