pladaria / reconnecting-websocket

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

Why do we need minUptime? #150

Open happy15 opened 3 years ago

happy15 commented 3 years ago

minUptime is introduced in a rewrite (76b58cd4cea869a2c427f4475c5d175d5fecbfc0).

What's the problem of calling _acceptOpen immediately rather than minUptime seconds later?

beenotung commented 3 years ago

Probably to avoid dead-loop in case of logical bug in the application.