title: SingalR in console app
body: <p>Hi I am trying  to run a signalR insude a console app.
  this is my code so far </p>
  
  <pre><code>    class Program
  {
      static IDisposable dis = null;
  
      static void Main(string[] args)
      {
          try
          {
              dis = WebApp.Start&lt;Startup&gt;("http://localhost:10476");
              Console.WriteLine("hi");
              Console.ReadKey();
          }
          catch(Exception ex)
          {
              Console.WriteLine(ex.Message);
          }
  
          if (dis != null)
              dis.Dispose();
      }
  }
  
  public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          app.MapSignalR();
      }
  }
  
  public class myHub : Hub
  {
      public void Hello()
      {
          Console.WriteLine("hi");
          Clients.All.OK();
      }
  }
  </code></pre>
  
  <p>UPDATE</p>
  
  <p>this is my client code</p>
  
  <pre><code>function send() {
  var connection = $.hubConnection("http://localhost:10476");
  var hub = connection.createHubProxy("myHub");
  hub.on("OK", function () {
      alert("HI");
  });
  connection.start({jsonp: true})
      .done(function () {
          console.log('connected');
          hub.invoke("Hello");
      })
      .fail(function (a) {
          console.log('not connected' + a);
      });
  </code></pre>
  
  <p>}</p>
  
  <p>note: my client and the hub are separate (I want the client to be a browser extension while the server is an app on my computer) 
  however when I call this function the browser sat "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:63343" rel="nofollow noreferrer">http://localhost:63343</a>' is therefore not allowed access."
  is my client code correct?</p>