Last post May 05, 2017 07:38 AM by TrevorT
May 03, 2017 09:54 AM|TrevorT|LINK
I am new to SignalR need help with setting up groups for my chat app such that clients in GroupA can only view and chat with GroupB and vise versa, such that you cant chat or view anyone in your group. I am trying to have a client - support chat application
such that clients cant see other clients and can only see the available support users.
I have this two methods in my chatHub
public Task JoinGroup(string groupName)
return Groups.Add(Context.ConnectionId, groupName);
public Task LeaveGroup(string groupName)
return Groups.Remove(this.Context.ConnectionId, groupName);
My chat app works ok but i dont know how to implement groups for a client - support setup.
May 05, 2017 01:51 AM|EvenMa|LINK
you can refer this link,maybe it can help u
May 05, 2017 07:38 AM|TrevorT|LINK
Thanks will try implementing group membership with a database and see if that works