Hi,
I'm trying to subscribe with auth to Mercure. The native EventSource works OK without authentication. But I need auth so I'm trying to use this polyfill.
TLDR: the minified version of this lib (1.0.20) works OK, but development version throws me errors constantly. The minified version has stripped console.error calls but I would like to handle this properly if there is something wrong.
When I use non-minified version of this lib I get errors every ~15 seconds:
The code still works, but the errors are unexpected.
How to handle those errors / reconnects properly? Because this doesn't happen in the native EventSource.
EDIT:
I've degraded version to 1.0.19 and the console log is removed and I can use a listener to get errors manually.
Hi, I'm trying to subscribe with auth to Mercure. The native EventSource works OK without authentication. But I need auth so I'm trying to use this polyfill.
TLDR: the minified version of this lib (1.0.20) works OK, but development version throws me errors constantly. The minified version has stripped
console.error
calls but I would like to handle this properly if there is something wrong.When I use non-minified version of this lib I get errors every ~15 seconds:
The code still works, but the errors are unexpected.
How to handle those errors / reconnects properly? Because this doesn't happen in the native EventSource.
EDIT:
I've degraded version to 1.0.19 and the console log is removed and I can use a listener to get errors manually.