I try to send the received data from a webservice call to my javascript clients. What is the correct approach? Should I create a hubContext in the Controller class
//Controller
var data = this.getData(_Ids);
var hubContext = GlobalHost.ConnectionManager.GetHubContext<Hubs.MyHub>();
hubContext.Clients.Client(cc.ConnectionId).receiveData(data);
and send the received data this way. Or should I create a controller in the Hub class to get the data there and send it in the Hub
//SignalR Hub
var data = new MyController().getData(_Ids);
Clients.Client(cpm.ConnectionId).receiveData(data);