go-socket.io icon indicating copy to clipboard operation
go-socket.io copied to clipboard

disconnect event sometimes not called

Open suxianbaozi opened this issue 3 years ago • 2 comments

Describe the bug

sometimes,a client has already dead,but disconnect event was not been called

suxianbaozi avatar Oct 23 '21 08:10 suxianbaozi

@suxianbaozi Hey! i need more information. What is you client client? are you setted onDisconnect(...) handler? Good description is your code in this problem

sshaplygin avatar Nov 02 '21 18:11 sshaplygin

@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

aslinaslin avatar Feb 13 '22 07:02 aslinaslin