Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11926 closed feature (plugin)

Implement EventSource

Reported by: brunoais Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:


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.

Change History (2)

comment:1 Changed 11 years ago by Rick Waldron

Resolution: plugin
Status: newclosed

As the author of jQuery.EventSource, I believe this should remain as a plugin

comment:2 Changed 11 years ago by Rick Waldron

#11927 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.