Get number of listeners, clients connected to SignalR hub
Is there a way to find out the number of listeners (clients connected to a hub?)
Is there a way to find out the number of listeners (clients connected to a hub?)
I have a hub with method that is called client-side. This method launches a timer with a delegate that runs every 10 seconds. Since it wouldn’t make sense to keep running this delegate if no one is connected to the hub, I want to check if any users are still connected from inside the delegate before I reschedule it. Is there any way to do this?
I am using SignalR 2 and I can not figure out how I can use my Hub methods e.g from inside a controller action.
I have a signalR Server(Console Application) and a client application(Asp.net MVC5)