title: signalR web application with console examples
body: <p>Is there any example of how to use SignalR with a console application ? 
  I have read the wiki but i couldn't manage to run my application i'll show you what i did </p>
  
  <p>server:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using Microsoft.AspNet.SignalR;
  using System.Threading.Tasks;
  using System;
  using Owin;
  using Microsoft.AspNet.SignalR.Hubs;
  using Microsoft.Owin.Hosting;
  
  
  namespace SignalRChat.Server
  {
  
      class Program
      {
          static void Main(string[] args)
          {
              string url = "http://localhost:8083";
  
              using (WebApplication.Start&lt;Startup&gt;(url)) {
                  Console.WriteLine("Server running on {0}", url);
                  Console.ReadLine();
              }
          }
      }
  
      class Startup
      {
           public void Configuration(IAppBuilder app)
           {
               app.MapHubs();
           }
      }
  }
  </code></pre>
  
  <p>Hub Class:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using Microsoft.AspNet.SignalR.Hubs;
  
  namespace SignalRChat.Server
  {
      public class ChatHub : Hub
      {
          public void Send(string message)
          {
              Clients.All.addMessage(message);
          }
      }
  }
  </code></pre>
  
  <p>Client:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;SignalR client&lt;/title&gt;
  
      &lt;script type="text/javascript" src="Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="Scripts/jquery.signalR-0.5.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="http://localhost:8083/signalr/hubs"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
      $(function () {
          // Proxy created on the fly
          var myHub = $.connection.chatHub;
          // Start the connection
          $.connection.hub.url = 'http://localhost:8083/signalr';
          $.connection.hub.start().done(function () {
              alert("Now connected!");
          }).fail(function () {
              alert("Could not Connect!");
          });
      });
      &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
          &lt;ul id="messages"&gt;&lt;/ul&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm always getting could not connect alert  is there any logic error in my code ?</p>