You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not getting OnOpened Event after websocket close and reconnected. But websocket was reconnected successfully. Here is the error.
System.OperationCanceledException: The operation was canceled.
at System.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
at System.Collections.Concurrent.BlockingCollection`1.TryTake(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Collections.Concurrent.BlockingCollection`1.Take(CancellationToken cancellationToken)
at PureWebSockets.PureWebSocket.<StartSender>b__59_0()
The text was updated successfully, but these errors were encountered:
This is by design (reconnecting without firing an event). We could make this an optional behavior. Could you give a bit more information about the error and how it relates to auto reconnect?
Hi @ByronAP,
Sorry for late reply. If it is by design then let it be. But It will be nice if we have option to fire event upon successful re-connection. Because some websocket require to send subscribe message upon reconnect.
Here is the information about the error and my setup.
I initialize the websocket with ReconnectStrategy like this
At some point OnError event fired with this exception
System.OperationCanceledException: The operation was canceled.atSystem.Collections.Concurrent.BlockingCollection`1.TryTakeWithNoTimeValidation(T&item,Int32millisecondsTimeout,CancellationTokencancellationToken,CancellationTokenSourcecombinedTokenSource)
at System.Collections.Concurrent.BlockingCollection`1.TryTake(T&item,Int32millisecondsTimeout,CancellationTokencancellationToken)
at System.Collections.Concurrent.BlockingCollection`1.Take(CancellationTokencancellationToken)
at PureWebSockets.PureWebSocket.<StartSender>b__59_0()
OnStateChanged event fired with State: Aborted,
then OnStateChanged event fired again with State: Connecting
After that I got welcome message from Websocket which is send upon every successful connection.
I'm not getting OnOpened Event after websocket close and reconnected. But websocket was reconnected successfully. Here is the error.
The text was updated successfully, but these errors were encountered: