Hacker News new | past | comments | ask | show | jobs | submit login

Author here: That's a good feature request. I shall implement a truncating exponential backoff algorithm tonight (maybe tomorrow).

I've been using this in production for over 2 years and my load levels have not caused any usability issues (even without backoff). But no doubt for heavier sites, this will be an excellent feature, so thanks for suggesting it. If you have other feature requests, please add them to the issue tracker as I'm more likely to notice them: https://github.com/joewalnes/reconnecting-websocket/issues

In answer to your question - the use of an abstraction is to allow new features (like the one you suggested) to be added in one place so individual users can easily make use of the additions.




Fair enough, thanks for publishing :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: