angular-signalr-hub icon indicating copy to clipboard operation
angular-signalr-hub copied to clipboard

Show Context.User.Identity.Name with ConnectionId?

Open mattdunndc opened this issue 9 years ago • 2 comments

How do I get the User name listed with the Context.ConnectionId? I've add the name string to the OnConnected() override but getting lost in Ng.

string name = Context.User.Identity.Name;

mattdunndc avatar May 14 '16 21:05 mattdunndc

Hey @mattdunndc, do you have a link to some documentation that demonstrates how to do this with normal SignalR? I'll see if we need to modify this angular wrapper.

JustMaier avatar Jun 05 '16 03:06 JustMaier

If you are using ASP.Net Identity with Signalr then you can get it by Context.User.Identity.Name

circuitrider avatar Oct 05 '16 20:10 circuitrider