Reputation: 2258
I have different groups of users to which i need to send data. I could have used hubs concept here but the only SignalR Android client library "SignalA" https://github.com/erizet/SignalA doesnt have implementation for hubs so i had to use Persisted Connections and its group concept. Now i see this OnConnected method on the SignalR documentation site
protected override Task OnConnected(IRequest request, string connectionId)
{
return Groups.Add(connectionId, "foo");
}
I want the user to be able to join different groups, so when he connects he will be passing a group name to which he wants to be added. How can i pass the group name on the client side as well as receive it in the above method instead of using a hardcoded "foo"?
I would also be very happy if anyone can point me to a SignalR java client library which has hubs implementation, as I failed to find any.
Thanks
Upvotes: 1
Views: 2556
Reputation: 4770
I know it's an old question but I think it's worth mentioning that SignalA now supports hubs.
Upvotes: 0
Reputation: 38784
You have 2 options:
Either one works.
Upvotes: 3