-
Notifications
You must be signed in to change notification settings - Fork 337
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
How to suppress reconnection error? #194
Comments
Can you prevent the error logging for narive EventSource? |
I am not familiar with native EventSource, but if here we have the same behaviour as in native then i see your point. Just wondering there should be a lot of people who should find this error irritating and how they deal with it |
if i am not mistaken, in 1.0.15 package was just throwing error and it was working fine and i don't see any advantages in using |
@roman-sereda-lohika why was it working fine? |
if you want to ignore the errors, some mechanism is needed. |
@Yaffle ahh, sorry for confusing, yeah, i see that it was not reported at all in previous versions, well, ok, i will just use some hacks around |
I don't know, what you are using. In the Mercure Rocks, you can passed the Heart Beat Interval. Just set this lower than 45 Seconds, you should good to go. and if you can change the interval, then you can increase the interval in the event source options |
I am too facing the same error |
Solved it by
|
It would be a useful feature to allow to disable the heartbeat. Mercure allows to do so in the hub config : https://mercure.rocks/docs/hub/config |
solved it by adding this to my Mercure config |
It would be nice to have one of the two options you listed |
Error in my chrome console:
Error: No activity within 45000 milliseconds. 11 chars received. Reconnecting.
I am fine that Event Source reconnects from time to time, but don't want to have errors in my console about it.
First of all why this is an error, not a warning?
Second is why do you use
console.error
instead of simply throwing errors?The second part makes it pretty hard to catch this error, the only way i find to do this is overwriting
console.error
but it doesn't look like a proper solution, any other ways to suppress error?The text was updated successfully, but these errors were encountered: