go-socket.io
go-socket.io copied to clipboard
disconnect event sometimes not called
Describe the bug
sometimes,a client has already dead,but disconnect event was not been called
@suxianbaozi Hey! i need more information. What is you client client? are you setted onDisconnect(...)
handler?
Good description is your code in this problem
@suxianbaozi Hey! i need more information. What is you client client? are you setted
onDisconnect(...)
handler? Good description is your code in this problem
Describe the bug Me too, I setted onDisconnect(),goroutine have not reduction, In the test environment, WS goroutine is very high. I'm solving this problem. I sure call onDisconnect() and onError()。 Refresh the front end without entering onDisconnect (), so do I have any other way to close the goroutine
Environment:
Go version: v1.17 Server version go-socket.io v1.6.1