I am trying to use signalR
in an existing MVC
application. I am loading the scripts in order. I can see the jQuery
and hubs scripts in the browser network console. But, I am getting an error saying chatHub
is undefined.
Surprisingly, when I try to debug the code and put a break point on
proxies.chatHub = this.createHubProxy('chatHub');
and after that when I go to console and type $.connectrion.chatHub
I can see all the properties of the object. But, when I end the debugging, the $.connection
gets undefined and then nothing works.
Please help me with a solution. I have tried every link available for signalR
and tried every possibility, but my problem seems to be different.
I am using signalR-1.0.1.