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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, write a custom
IJavaScriptProxyGeneratorand plug it into theGlobalHost.DependencyResolverat startup and SignalR will generate the scripts using that instead.In your case I would start by copying the the
DefaultJavaScriptProxyGeneratorimplementation and the template/SignalR/Scripts/hubs.jsfile and then replace the aliases used in those two places with whatever makes sense for you.