Side navigation
#11926 closed feature (plugin)
Opened June 18, 2012 01:13PM UTC
Closed June 18, 2012 01:41PM UTC
Last modified June 18, 2012 02:11PM UTC
Implement EventSource
Reported by: | brunoais | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm interested in implementing EventSource in jQuery with a fallback towards AJAX for jQuery.
The idea is to encapsulate the Mobile browsers and IE incapability to properly support the EventSource object and to allow browsers that support EventSource to be able to use it at its fullest.
I have two main ideas I don't really know which is more "healthy" for jQuery, still I believe both are good ideas
One idea is to create a method that shares some options with the ajax method. It preforms the EventSource properly and, if EventSource is not available, use the ajax method with a setInterval() to keep things updated.
The other idea is to integrate such feature into the ajax method. This would require some more options into the anonymous object that is sent to this method but it would also make much sense anyway.
I have already read most of jQuery's code so I'm quite aware about how jQuery works internally.
One of the reasons I'm writing this is because I don't want to develop such feature if it is currently being developed by someone else. As there's no other ticket about EventSource (that I could find) I'm here to help the development of jQuery.
As the author of jQuery.EventSource, I believe this should remain as a plugin