I`m calling SignalR from inside a MVC Controller action
var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>();
var ret = context.Clients.Client("Whatever").getValue(userId);
Is there anyway I can get a response from the getValue() method being called on the Client inside the action?
I've tried a few ways but simply can't get any value for ret. I'm pretty sure this doesn't work with a SignalR Hub but couldn't find documentation about this.
One solution I've considered is after receiving the getValue the Client would call a method in the Hub but then I would have to hack my way into getting the response from the Hub into the controller.