Reconnect logic: On client reconnection, the server will not remember previous group memberships. Rejoin groups in
OnConnectedAsync or after reconnecting.
Scaling: For distributed apps (multiple servers), use a
backplane (like Redis) to sync group info across instances.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In SignalR, Groups are a powerful way to manage chat rooms, teams, or any logical collection of connected clients.
What Are Groups in SignalR?
Key Concepts
Groups.AddToGroupAsync()andGroups.RemoveFromGroupAsync().How to Use Groups
1. Joining a Group (e.g., joining a chat room)
2. Leaving a Group
3. Sending a Message to a Group
Client-Side Example (JavaScript)
Important Tips
OnConnectedAsyncor after reconnecting.