Reputation: 10358
I use signalr on site where there is already another jQuery version. I needed to change jQuery alias. Is it possible to modify script that is returned from ~/signalr/hubs?
Upvotes: 0
Views: 581
Reputation: 33379
Yes, write a custom IJavaScriptProxyGenerator
and plug it into the GlobalHost.DependencyResolver
at startup and SignalR will generate the scripts using that instead.
In your case I would start by copying the the DefaultJavaScriptProxyGenerator
implementation and the template /SignalR/Scripts/hubs.js
file and then replace the aliases used in those two places with whatever makes sense for you.
Upvotes: 2