Found excellent article on this very subject: http://www.asp.net/signalr/overview/getting-started/tutorial-server-broadcast-with-aspnet-signalr
SignalR and ticker service
-
21-04-2022 - |
Question
I was wonderign if anyone has a good example on how to construct a SignalR Hub, so multiple clients will not cause multiple broadcast messages to be sent out?
Basically, I have a status message I'd like to broadcast to every connected client. Currently, every client causes me a new message to be broadcast, so if my ticker is say 4 times a minute and I have 5 clients, the Hub starts sending 20 updates a minute, and each client receives all 20 messages instead of 4 for all of them.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow