Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are some undocumented nuances with the latest version, in fact I was working through them today.</p> <p>First off you will not need the Code from Main, in the link you referenced. That is for using Signalr inside of a WPF app or Windows 8 app.</p> <p>The first issue that may or may not be an issue, is the use of HubNameAttribute, it may or may not be needed.<br> Without HubName the name of your hub should resolve to $.connection.chatHub</p> <p>The next part that you have already handled is the new namespaces on each hub.</p> <pre><code>chatHub.client - These are client defined methods, that the server may invoke. chatHub.server - These are server defined methods, that the client may invoke. chatHub.state - This is the state that gets sent to and from the server. </code></pre> <p>Now the uncaught error is something in the JavaScript not getting output correctly, most likely the hubs definition, as the hub variable is whats null. You need to verify under the covers that the hubs are coming back properly.</p> <pre><code>&lt;script type="text/javascript" src="~/signalr/hubs"&gt;&lt;/script&gt; </code></pre> <p>This should return a properly formatted jQuery ready block, that defines all the hubs and server methods for those hubs. Using a tool like <a href="http://www.fiddler2.com/fiddler2/" rel="nofollow">Fiddler</a> will help with this.</p> <p>I would also start using Chrome or Firefox w/Firebug, both have their advantages and disadvantages, but both will give you a network monitor and debugging facilities. Being able to catch unhandled exceptions has been a life saver trying to debug all things JavaScript.</p> <p>Hope this helps you on your quest to solve your outstanding issues.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload