pladaria / reconnecting-websocket

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

I cannot close a connection #188

Closed paliuca closed 1 year ago

paliuca commented 1 year ago

I tried to close the currenct connection with no success. Ex: for a certain reason i need to close the connection, usual case (maxRetries: this.desktop ? Infinity : 3). So if the retries are not finished it still reconecting event I am closing the connection manualy. (rws.close(3001, 'force')). Thanks

paliuca commented 1 year ago

Solved.

coolRoger commented 1 year ago

can you explain how to solved? i am facing the same issue