I'm not sure I'm following you. How does this differ from native EventSource?
Edit: actually this looks to be a lot more sophisticated than the other shims i havr looked at and does indeed behave more like eventsource. Good job!
Addition: Verified. It doesn't disconnect between events (not long-polling).