Hi,
We are using Prototype Ajax on the client side, consuming messages
from a Comet server.
We were wondering whether it's possible to keep a connection alive,
and pass multiple messages on the same connection (for "Server push")?
It's something in the lines of:
- Client opens an Ajax.request
- The server sends a reply message; the client consumes it (onsuccess)
- Now usually, the HTTP connection would be closed; if the client
expects more messages, it should open a new request and a new
connection.
- But we'd like to keep the connection alive for a while (on both
client and server), so that if the server discovers new data (say 5
minutes later) it can push a new message on the same connection, and
hopefully trigger another callback on the client ('onsuccess').
Of course this requires a way of telling when 1 message ends, and
another begins... we were hoping this can be done based on some
separator (perhaps multipart format?), or content-length.
Is this supported on Prototype Ajax?
Thanks :)
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.