SignalR, Using a From ID when Broadcasting to Others

Started by
3 comments, last by hplus0603 4 years, 6 months ago

When using SignalR, If I have  a list of connection IDs, is it possible to send a broadcast from a certain connection ID to all the other users?

Something like this:


Clients.Others.addMessage(fromID, message);

Thank you,

Josheir

Advertisement

I quickly looked through the code, and I don't think so, although I'm not a user of SignalR.

I'm thinking there would be approximately the same cost to just queue the same message to each of the clients in Others and have a field in that message that the clients can use to figure out who it's "from."

enum Bool { True, False, FileNotFound };

Thanks, I'm watching a video on SignalR now and am thinking I should understand this in a while.  :)

Well, the good news is that it's all open source and you can read the code yourself!

(It's kind of high in interface abstraction, though, making it harder to follow ? )

Dpeending on which flavor you're using:

https://github.com/SignalR/SignalR

https://github.com/aspnet/SignalR

enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement