pladaria / reconnecting-websocket

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

feat: Allow options to be changed on reconnect() #184

Closed knev closed 2 years ago

knev commented 2 years ago

Allow for options to be changed on reconnect. For example. If debugging options or maxRetries is to be changed without having to recreate the entire socket, including assigning all message handlers.

knev commented 2 years ago

I realized a flaw in the code. I will submit a new PR.