Delay at .onclose event with my websocket
Ok so, when the websocket connection ends i need to execute some code in onclose event in server-side and client-side in that instant, but when cloudflare ends the connections at restart their servers, the onclose event isn't executed correctly, it takes like 10 seconds in execute and sometimes it never execute.
I removed all timeouts from my nginx restart and I still with this issue, please help me!!!
1 Reply
the connection ends in client side without any problem but when i put a System.out.print() for check onclose event in servre side it didnt logged nothing, so i have no idea whats wrong, it only happends when cloudflare ends connection at restart their servers as i said.
Do you mean like a rate limit?
The issue is that i dont end connection, all websocket connections disconnects without any reason, and it only happends when cloudflare its enabled with the code 1006 and reason: "".