1

I can send message to all group in chat

 return context.Clients.Group(sGrp).recieveNotification(message, user, chatid, uuid);

I can send message to all group in chat

return context.Clients.User(currentuser).seenyou(myname);

the problem when i send message to specific user in specific group is there is way to do this .

1

1 Answer 1

1

The only way to send a message to a specific user is by addressing the user by its connection Id. In this case it doesn't matter if he is in a specific group or not. Other than that there's no such thing as a built-in list, that you can iterate on, you need to manage those references by yourself.

Of course, if the desired user is the sender, you can use Clients.Caller.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.