In a AspNet SignalR client is it the action to dispose of a HubConnection
necessary?
It seems to take some time, from what I have seen...
The default keepalive timeout period is currently 20 seconds. If your client code tries to call a Hub method while SignalR is in reconnecting mode, SignalR will try to send the command.
In the default mode, the app server creates five server connections with Azure SignalR Service. The app server uses the Azure SignalR Service SDK by default. In the following performance test results, server connections are increased to 15 (or more for broadcasting and sending a message to a big group).
ASP.NET Core SignalR is a library that simplifies adding real-time web functionality to apps. It uses WebSockets whenever possible.
If your SignalR application transmits sensitive information between the client and server, use SSL for the transport.
It's not necessary if you are calling Stop()
.
See https://msdn.microsoft.com/en-us/library/dn235890(v=vs.118).aspx
otherwise, you should always Dispose of IDisposable
objects when you are done using them.
If it is taking too long (i.e., blocking the current thread), just stop it on a Task
, something like:
Task.Run(()=>hubConnection.Stop());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With