title: SignalR - Javascript Hub Proxies
body: <p>When you use SignalR, in your HTML you need to reference the following two scripts: </p>
  
  <pre><code>&lt;script src="~/Scripts/jquery.signalR-1.0.0.js"&gt;&lt;/script&gt;
  &lt;script src="/signalR/hubs"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The second one is for a JavaScript hub proxy which will be auto generated. Everything works fine. However what happens if the JavaScript Hub Proxy generation is disabled somehow, perhaps by setting DisableJavaScriptProxies property (<a href="https://github.com/SignalR/SignalR/commit/7e974f4e92551a26f3e3e0a166e1dbf6c064e850" rel="nofollow">https://github.com/SignalR/SignalR/commit/7e974f4e92551a26f3e3e0a166e1dbf6c064e850</a>). When JavaScript proxy generation is disabled and you try to reference /signalr/hubs in your HTML, it gives the JavaScript error: </p>
  
  <pre><code>Uncaught Error: SignalR: JavaScript Hub proxy generation has been disabled.
  </code></pre>
  
  <p>When I browse to that path in the browser, the response is:</p>
  
  <pre><code>throw new Error('SignalR: JavaScript Hub proxy generation has been disabled.')
  </code></pre>
  
  <p>If the JavaScript proxy generation is disabled, how is the <code>$.connection.myHub.client</code> JavaScript code going to work? What extra do I have to do to make it work? The JavaScript error I get is </p>
  
  <pre><code>Uncaught TypeError: cannot read property 'client' of undefined.
  </code></pre>