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
In my app I need to dispose the WebSocket but if the WebSocket is connected then I would like to make sure that the Closed event will get fired. If I call the WebSocket.Dispose() when the WS is connected then it will close the connection but the Closed event will not get fired. How can I easily make sure that it will get fired? Do I need to implement custom logic for that?
In my app I need to dispose the
WebSocket
but if theWebSocket
is connected then I would like to make sure that theClosed
event will get fired. If I call theWebSocket.Dispose()
when the WS is connected then it will close the connection but theClosed
event will not get fired. How can I easily make sure that it will get fired? Do I need to implement custom logic for that?Here is my wrapper for WebSocket:
The text was updated successfully, but these errors were encountered: