When a user logs in to my site, they select from the drop-down list to which they belong. On the back of the login, when they are logged in, I would like to assign them to the correct SignalR group.
According to the documentation here , I can join it on the client side through:
contosoChatHubProxy.server.joinGroup(groupName);
Is there a way to assign a group from a controller? I can name the hub as:
var hub = new NotificationHub() hub.JoinGroup(selectedGroup);
but the context in the hub method is NULL. Is this possible, or am I approaching this problem incorrectly? Thanks for any advice.
Jonesopolis
source share