On tiistaina 4. tammikuuta 2011 at 18.22, Phil Petree wrote:

> There was some discussion of this for html 6 then for awile it looked like 
> they were gonna drop it and then it came back.  Latest doc is here:
> http://dev.w3.org/html5/eventsource/
> 
> But dont expect support anytime soon...
> 
> 
> 
> 
Isn't this basically what WebSockets [1] are meant for?


Check out e.g. Socket.io [2], Faye [3] and Pusher App [4].


//jarkko


[1] http://dev.w3.org/html5/websockets/
[2] http://socket.io/
[3] http://faye.jcoglan.com/
[4] http://pusherapp.com/

> 
> 
> On Mon, Jan 3, 2011 at 10:22 AM, sol <solmy...@gmail.com> wrote:
> 
> 
> > 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 
> > prototype-scriptacul...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > prototype-scriptaculous+unsubscr...@googlegroups.com.
> >  For more options, visit this group at 
> > http://groups.google.com/group/prototype-scriptaculous?hl=en.
> > 
> > 
> > 
> 
> 
>  -- 
>  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 
> prototype-scriptacul...@googlegroups.com.
>  To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com.
>  For more options, visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
> 
> 
> 
> 


-- 
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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to