Open aadog opened 1 year ago
Hello @aadog, sorry for the delay. I think this is for the front-end library (neffos.js).
I don't see why it doesn't work on your example, it seems that client side does not stop on retry-ing to reconnect (unless max "tries" option is provided) as expected. Do you have a working example which can re-produces the issue?
Thank you for your reply. I solved it with the following code
for{
ws:=dial()
defer ws.Close()
//...
}
@kataras @aadog You should use an exponential backoff retry strategy. Native retry strategy DDoS to your server when network unstable.
websocket client how do reconnect?