![]() ![]() Groups.AddToGroupAsync(Context.ConnectionId, groupName) Though, to avoid link expiration, the suggestion from the ASP.Net forums is to use a hub to accept a "JoinGroup" which is able to do the call into public void JoinGroup(string groupName) Some direction on how I go about adding a user to a group outside of the hub would be very helpful. Which works in the aspnet core examples when within a hub, but I am unable to find a non-hub equivalent. Groups.AddToGroupAsync(userName, groupName) However, I cannot see anything outside of a Hub class - which this sample would not have, to do the equivalent of I can see from the Swagger that I can send messages to groups, in a similar way to users (by posting to /api/v1-preview/hub/ ) However I am having a problem registering the connecting users to groups for the service to send messages to specific groups. ![]() Of services available and am able to broadcast to all clients, or to specifics. I would like to utilize this, and have modified it with reference to the Azure SignalR Swagger () for definition Which allows a connection to the SignalR Hub from a. I'm currently getting up to speed with the Azure SignalR Service (Preview), and have looked at the aspnet core and straight. ![]()
0 Comments
Leave a Reply. |