Get number of listeners, clients connected to SignalR hub
There is no way to get this count from SignalR as such. You have to use the OnConnect() and OnDisconnect() methods on the Hub to keep the count yourself. Simple example with a static class to hold the count: public static class UserHandler { public static HashSet<string> ConnectedIds = new HashSet<string>(); } public class MyHub … Read more