Yaffle / EventSource

a polyfill for http://www.w3.org/TR/eventsource/
MIT License
2.11k stars 338 forks source link

Keeps reconnecting with heartbeatTimeout: 1day #174

Closed alessandroAmedei closed 3 years ago

alessandroAmedei commented 3 years ago

I have set in the Eventsource constructor option heartbeatTimeout:10006060*24, anyway, sometimes the connection goes down and then it reconnects.

Yaffle commented 3 years ago

@alessandroAmedei please use retry event stream field - developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#:~:text=retry heartbeatTimeout is to check if the connection still works