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

Cancel connection

Open Beyley opened this issue 3 years ago • 2 comments

If i try to connect to a server that is not currently online, websocket-sharp will seemingly indefinitely hang with the ReadyState of "connecting", with WebSocket.Close not doing anything

Beyley avatar May 16 '22 01:05 Beyley

I have the same issue, I wonder if the checkIfAvailable() since it has a recursive call gets into an infinite loop.

intersides avatar Nov 21 '22 17:11 intersides

@Beyley I could avoid the hanging by using ConnectAsync() instead of Connect()

intersides avatar Nov 21 '22 17:11 intersides