I would like to create many room chats so many groups in a company could talk.
SignalR Groups provide a method for broadcasting messages to specified subsets of connected clients. You can add users in a company to groups and persist group membership information, so that users in same group could chat/communicate with each other group
member.
For more information about Groups in SignalR, please refer to
this documentation.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
177 Points
629 Posts
Create a chat with many rooms using SignalR
Nov 15, 2018 04:24 AM|neoaguil17|LINK
Hi
I would like to create a chat with many rooms.
I followed the link: https://www.c-sharpcorner.com/article/signalr-chat-app-with-asp-net-webform-and-bootstrap/
But I would like to create many room chats so many groups in a company could talk.
The example is only about one room.
All-Star
40565 Points
6233 Posts
Microsoft
Re: Create a chat with many rooms using SignalR
Nov 16, 2018 01:58 AM|Fei Han - MSFT|LINK
Hi neoaguil17,
SignalR Groups provide a method for broadcasting messages to specified subsets of connected clients. You can add users in a company to groups and persist group membership information, so that users in same group could chat/communicate with each other group member.
For more information about Groups in SignalR, please refer to this documentation.
With Regards,
Fei Han
All-Star
22997 Points
5540 Posts
MVP
Re: Create a chat with many rooms using SignalR
Nov 24, 2018 03:22 PM|raghav_khunger|LINK
You can use "Groups.Add(Context.ConnectionId, roomName);" where ConnectionID is the id of your client and roomName is the name of your room/thread.