websocket-sharp
websocket-sharp copied to clipboard
Invalid ReadyState of a client
Why is the ReadySate of a client which has never attempted to connect, WebSocketSharp.WebSocketState.Connecting?
I would expect the state to be WebSocketSharp.WebSocketState.Closed instead.
The culprit seems to be here: https://github.com/sta/websocket-sharp/blob/master/websocket-sharp/WebSocket.cs#L1134
Yes, I think this is a bug. Same unexpected behavior have faced :)
I am also encountering this issue. For now, I am calling .close() before connecting.