Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polling and Last-Event-ID issues with IE #16

Open
izabellagal opened this issue Sep 19, 2013 · 0 comments
Open

Polling and Last-Event-ID issues with IE #16

izabellagal opened this issue Sep 19, 2013 · 0 comments

Comments

@izabellagal
Copy link

We have encountered two issues when using the plugin with IE 9 and IE 10.

  1. We have observed that when an Ajax call times out because there are no new events, the source in not queried again.
    We have also observed multiple parallel requests because the timer set to poll the source again after processing the events from the current request is not fired once, but multiple times.

    We have refactored the code to poll again into a separate method and we have added an error handler for the Ajax call, handler that calls this refactored method.

  2. When the fall-back implementation is used, the Last-Event-ID request header is not set. Due to this, our server application sends all the events, both new and old, on each request.

    To resolve this problem we have made a change to get the lastEventId value from the parsed data and we have added the Last-Event-ID header to the Ajax call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant