Manually create a group using SignalR -
i have list of userdetails connected hub
, storing users list<userdetails>
.i want add of users group
, broadcast message group. not able figure out how can create group.this have done far:
foreach(var user in userdetails) { groups.add(user.connectionid, "connected"); } clients.group("connected").broadcastmessage(message);
when ever add user group, if group doesn't exist created you, don't need create specifically.
Comments
Post a Comment