When ever a user connects to your hub, the OnConnected()
is called. You can over ride this function and implement your own logic if you need to keep track of or limit the number of connections
public override Task OnConnected()
{
//you logic here
return base.OnConnected();
}