UPDATE: With some serious modification to the server end point, Luke Morton was able to achieve a single open event that fires message events as responses are received via a "push" from the server: https://gist.github.com/1002722. By modifying the original example's PHP end point, Luke's approach was to omit the closing PHP tag (ensures that no return code is sent to the client), buffer and flush the output and wrap the whole program in a while loop that sleeps for one second to simulate delays in response activity.

Tagged:

I originally wrote this as a comment on Mozilla's "Aurora 6 Is Here" article - but I'm impatient and couldn't wait for the comment to be moderated. Also, I haven't posted in a while and figured Bob the Rooster would appreciate it.

Glad to see support for the EventSource API has made it to Firefox.

Tagged:

The Official Opera Blog has announced that Opera 10.70 will feature a reimplementation of the EventSource API. I say "reimplementation" because Opera was actually the first modern browser to add support for Server Sent Events back in 2006.

The implementation was awkward and required a DOM element. Last week, Opera Core Concerns posted an update regarding the re-implementation of the formerly experimental feature, you can read about that here.

Tagged:

After spending the day finishing out cross-browser EventSource support in the form of jQuery.EventSource.js, then wrapping up with a commit of 55 new unit tests, I finally left the Bocoup Loft for the day around 8 o'clock... But as most developers know, no matter how hard you try, you just can't leave this kind of work at the office. On the short ride home I had some time to reflect on the developments of modern browsers and how exciting things like Workers, SharedWorkers and EventSource are...

Tagged:

For those of you curious about what can be created or where to use the new JavaScript EventSource API (also known as "Server Sent Events" ) - I've developed a very basic chat application that uses jQuery.EventSource.js to provide a simple API to native EventSource where available (and a fallback when not) and Twitter @anywhere for user auth.

Tagged:

...Not natively... but this will work in the meantime:


Git it here


Tagged:

This is mighty awesome. I've put together some test demos, to run them you'll first need to get this Chromium build:


Tagged: