map user to ConnectionId SignalR

73

map user to ConnectionId SignalR -

public class MyHub: Hub
{
    public override Task OnConnected()
    {
        Groups.Add(Context.ConnectionId, Context.User.Identity.Name)

        return base.OnConnected();
    }
}

Comments

Submit
0 Comments