eventsource icon indicating copy to clipboard operation
eventsource copied to clipboard

Connection Backoff

Open eatnlunch opened this issue 5 years ago • 0 comments

I know the module currently supports a reconnectInterval of 1000 ms. Are there any plans to incorporate some kind of semi-random exponential backoff algorithm to this module?

We recently experienced an event related to issue #121 . In this case, we had many EventSource instances connecting to a single domain, which was undergoing issues on the server side.

A built-in backoff algo would have lessened the (significant) impact on both our client and the server, even without a fix for #121

eatnlunch avatar Apr 01 '19 16:04 eatnlunch