我在我的ASP点NET Web应用程序使用信号r。在这里,我使用IHubContext调用的客户端从外到HUB类。我需要获得当前userconnection ID,以便将消息发送到当前被叫用户我only.How可以得到它?
Hi I am using Signal R in my asp dot net web application. Here I am calling client from outside to hub class using IHubContext. I need to get current userconnection id in order to send message to current called user only.How can I get it?
是的。您可以使用 $。connection.hub.id