pladaria / reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)
MIT License
1.23k stars 199 forks source link

Add `retryURL` option #152

Closed antoinelyset closed 3 years ago

antoinelyset commented 3 years ago

Hey!

This adds an option to handle a failure to fetch the WebSocket URL (in case of disconnection) as a legitimate failure that triggers a retry.

This should close: https://github.com/pladaria/reconnecting-websocket/issues/134

What do you think?