I want to implement a SignalR logging, where the server will regularly ping all it's clients for any accumulated logs.
Microsoft isn't exactly clear on this: docs
What I don't understand is if there is a way to get results from all clients at once. Something like:
var logsFromAllClients = _hubContext.Clients.All.SendLogs();
However this obviously doesn't work, because Clients.All is simply my strongly-typed client T. Which means that it can only get results from one client. I'm curious as to what will happen if invoked with multiple active clients?
Another idea is to iterate over all active connections and request each client's logs individually. As far as I can tell this is also not supported outside of the box. Would I be able to store active connection ids in a collection and iterate over them to achieve this.
Is there anything else I'm missing?