How do I call a SiganlR Client method with the method string?

78 Views Asked by At

Is there away to avoid using the dynamic methods to call client methods from a Hub? I currently have...

this.Clients.Client(connectionID).MyClientMethod("Hello");

But I want to be able to do it like this...

this.Clients.Client(connectionID).Execute("MyClientMethod", "Hello");

I've search the various methods exposed on the server side and read the SignalR guides but can't figure it out. Any ideas?

0

There are 0 best solutions below