Viktor

Results 161 comments of Viktor

@zencakd you can use something like this: ```javascript function connect() { var es = new EventSource('https://wikipedia.org'); es.onerror = function (event) { if (es.readyState === EventSource.CLOSED) { // check if old...

@zencakd , the polyfill exposes the error code - check `event.status` in the error event handler

@SrMouraSilva will the event handler use promises?

@akaskj , how to reproduce? In which web browser can this be reproduced?

@akaskj does it happen for all clients? are you using HTTPS ? How should the polyfill behave in case it cannot receive data?

@henry-chris , could you try a new version? I have added some details to this error message.

@Veitor , unfortunately, I have no ideas how to fix it, please use other libraries which switch to non-SSE transports

>But it's anyway related to the way you have implemented this polyfill The polyfill does nothing special to cause that issue. The polyfill uses fetch API with streaming body, it...

How much data do you transfer inside of this connection?

Seems, yes, it may have some performance problems