I have a question about the Caller SignalR method. In the hub method, we can call the client side function as follows.
Clients.Caller.addContosoChatMessageToPage(name, message);
but when I use it to call the hub context from outside, is it not found or not implemented? like this..
var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>(); context.Clients.Caller.reportProgress(recordCount,totalCount);
Can someone enlighten me in this part or is there another way to implement it. I am currently using to implement this
var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>(); context.Clients.User(CurrentUser.Usernm).reportProgress(recordCount,totalCount);
but now we are not claims-based authentication, so this will be a problem if the same usernm is registered.
source share