Q:

SignalR: How to create and send message to a group from all connected group?

I am working on a chat application. I am able to send message to a particular client or all the connected clients. But i want to select 4 Connected user out of 10 connected user and send the for a common message at a time.
Any help is very much appreciated.

A:

You can monitor which users are connected bu capturing the connectionid, and you can then decide who to send the messages to based on the connected users and their unique identifier.
Theres a good blog post here which shows the idea.

