© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
14 replies
Stilau

✅ Groups & Clients in SignalR not taking requests.

I have 2 Hub tasks,
1. Connect
2. Send

I save all connections that are being sent to connect with a game code, and store them in a group..
Like this:
public async Task Connect(string gameId)
{
    await Groups.AddToGroupAsync(Context.ConnectionId, gameId)
}

public async Task Send(string gameId)
{
    await Clients.Group(gameId).SendAsync("Testing");
}
public async Task Connect(string gameId)
{
    await Groups.AddToGroupAsync(Context.ConnectionId, gameId)
}

public async Task Send(string gameId)
{
    await Clients.Group(gameId).SendAsync("Testing");
}


I tried doing this, but it simply won't work?
I also tried storing away a client connection ID and not go through groups, but I am not able to send any requests down to my Javascript part?

It works if I use
Clients.All.SendAsync()
Clients.All.SendAsync()
, but nothing else..?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SignalR Groups not working
C#CC# / help
2y ago
Deal with clients that not support signalR
C#CC# / help
4y ago
✅ Help Using SignalR with Groups
C#CC# / help
11mo ago
✅ SignalR Not working
C#CC# / help
4mo ago