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 […]

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 […]

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 […]

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 […]

Tagged:

…Not natively… but this will work in the meantime: Git it here firefox-event-source.js ;(function (w) { if ( !w['EventSource'] ) { // parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License var parseUri = function(str) { var o = { key: ['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'], q: { name: 'queryKey', parser: /(?:^|&amp;)([^&amp;=]*)=?([^&amp;]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/ } […]

Tagged:

This is mighty awesome. I’ve put together some test demos, to run them you’ll first need to get this Chromium build: 47357 WIN32 47357 MAC 47357 32-Bit Linux 47357 32-Bit Linux Then download these: https://gist.github.com/415116 client.html <script src="event-source.js"></script>; event-source.js document.addEventListener('DOMContentLoaded', function () { var eventSrc = new EventSource('events.php'); eventSrc.addEventListener('open', function (event) { console.log(event.type); }); eventSrc.addEventListener('message', […]

Tagged:

The test showed up on my desk just like any other. There I was, working with Google’s Web Platform Predictability team to find so-called “flaky” tests in the venerable Web Platform Tests project. I’d run a hundred or so at a time, over and over again, looking for any that reported inconsistent results. It was […]

Tagged:

CC BY-SA