-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Timeout Error #76
Comments
I want to show that you are not sending messages every 45 seconds. This is needed to detect disconnects. |
How do I overcome this exception? |
Send a heartbeat at least every 45 seconds to keep connection alive. |
@fperezgaliana , May be, |
Hello, I'm also getting |
@karser, native EventSource may use TCP keepalives , I think |
I am experiencing a strange issue, for some clients connection is timing out though we are sending heartbeat. It's working fine for most of the users but for some users connection keep timing out. Most of these users are using Chrome latest version, any thoughts? |
@farukhali , do you receive some other events? can you check on the client side if there is something unusual? if you are using plain text HTTP some antivirus software may block streaming responses. |
@Yaffle normal http requests are working fine. No event received through SSE. Content type for this request is text/event-stream; charset=utf-8. I also suspect antivirus/firewall but it's difficult to get connected with a customer having this problem. |
@farukhali @Yaffle I am facing the exact same issue, even though I am sending heartbeats every 15 seconds I am seeing this error thrown every 45 seconds. We also send other data as soon as the connection is established and even that data is not received by the customer. @farukhali were you able to find a fix or a workaround for it? |
To suppress the error use preventDefault()
|
@warrendodsworth it seems like this does not work any more. I did not check yet when it broke, but it works fine with |
I just realized that you don't actually throw a real error any more. So if I read your code right, there is no need to suppress anything really. I guess this can be closed then? |
@kaesetoast , seems, so |
Very nice library!
Could you explain why you are throwing an error here:
https://github.com/Yaffle/EventSource/blob/master/eventsource.js#L601
I have a global error handler that displays errors to the user and this keeps triggering the error handler.
The text was updated successfully, but these errors were encountered: