websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

onClose method gets invoked very late

Open suats opened this issue 9 years ago • 1 comments

Hi sta,

thanks for sharing this library

I would like to detect if internet connection get lost on client side, the scenario like following;

1- internet connection stable and everything works fine 2- i turn off wireless conn and wait for onClose method get invoked 3- And It never gonna happen 4* but if i invoke Ping() after internet connection lost and wait prox. 20 sn, onClose method works normally. But i need that detection in just few seconds, whats is the best strategy for that?

thanks.

suats avatar Sep 21 '15 21:09 suats

hi man, how do you solve this trouble? it's very actual problem

ilsnk avatar Jun 29 '22 21:06 ilsnk