title: SignalR demo not working
body: <p>I'm following this quick tutorial on getting a SignalR project started, and in my Hub class, I have the following</p>
  
  <pre><code>using Microsoft.AspNet.SignalR.Hubs;
  
  namespace MvcApplication8.Hubs
  {
      public class ChatHub : Hub
      {
          public void BroadcastMessage(string message)
          {
              Clients.writeMessage(message);
          }
      }
  }
  </code></pre>
  
  <p>Client code:</p>
  
  <pre><code>    $(document).ready(function () {
          var chat = $.connection.chatHub;
          chat.writeMessage = function(msg) {
              $("#messages").append("&lt;li&gt;" + msg + "&lt;/li&gt;");
          };
          $("#buttonSubmit").click(function () {
              chat.broadcastMessage($("#txtInput").val());
          });
          $.connection.hub.start();
      }); 
  </code></pre>
  
  <p>However I'm getting a compile time error saying:</p>
  
  <blockquote>
    <p>'Microsoft.AspNet.SignalR.Hubs.HubConnectionContext' does not contain
    a definition for 'writeMessage' and no extension method 'writeMessage'
    accepting a first argument of type
    'Microsoft.AspNet.SignalR.Hubs.HubConnectionContext' could be found
    (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Where went wrong?</p>
  
  <p>I installed SignalR into my project from <a href="http://nuget.org/packages/microsoft.aspnet.signalr" rel="noreferrer">http://nuget.org/packages/microsoft.aspnet.signalr</a>
  using the package manager console "Install-Package Microsoft.AspNet.SignalR -Pre"</p>