|
CancellationTokenSource.Cancel(); |
After the server gives me a response for logging off, I attempt to close the connection with this repo's ws.Close(CoolWebSocketCloseStatus.NormalClosure), however OnClose was not triggered.
If I send ws.Close(4) (random integer), I get a unhandled OperationCanceledException, "the operation was cancelled" instead.
Any idea how and when OnClose was designed to trigger?
CoolWebSocketClient/CoolWebSocketClient.cs
Line 138 in 775c62b
After the server gives me a response for logging off, I attempt to close the connection with this repo's
ws.Close(CoolWebSocketCloseStatus.NormalClosure), howeverOnClosewas not triggered.If I send
ws.Close(4)(random integer), I get a unhandledOperationCanceledException, "the operation was cancelled" instead.Any idea how and when
OnClosewas designed to trigger?