Skip to main content

Bug Tracker

Side navigation

#11927 closed feature (duplicate)

Opened June 18, 2012 01:15PM UTC

Closed June 18, 2012 02:11PM UTC

Last modified June 18, 2012 02:11PM UTC

Implement EventSource

Reported by: brunoais Owned by: brunoais
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.

Attachments (0)
Change History (3)

Changed June 18, 2012 01:36PM UTC by dmethvin comment:1

owner: → brunoais
status: newpending

This seems like plugin material to me. Have you looked at @rwaldron's jquery.eventsource plugin?

Changed June 18, 2012 02:11PM UTC by rwaldron comment:2

resolution: → duplicate
status: pendingclosed

Changed June 18, 2012 02:11PM UTC by rwaldron comment:3

Duplicate of #11926.