title: SignalR self hosted windows service, listening for messages
body: <p>I'm attempting to build a windows service that's self-hosting SignalR.</p>
  
  <p>I have read through tutorials such as <a href="http://www.asp.net/signalr/overview/deployment/tutorial-signalr-self-host" rel="nofollow">SignalR Self-Host on ASP.Net</a></p>
  
  <p>I'm noticing that, least it seems, that they're based around broadcasting messages, and can't seem to find anything around listening.</p>
  
  <p>I need to listen to messages from within the service, as well as broadcast.</p>
  
  <p>We already have our backplane setup - it's the same one that the site uses.</p>
  
  <p>In a web site I can join a group, via Javascript. How do I join a group in a self-hosted SignalR service.</p>
  
  <p>In a web site I register a callback on a hub. How do i register the same callback in a self-hosted service?</p>
  
  <p>some example code that I have in place, for registering and starting SignalR is:</p>
  
  <pre><code>GlobalHost.DependencyResolver.UseSqlServer(Settings.Default.ISDBContext);
          app.Map("/signalr", map =&gt;
          {
              map.UseCors(CorsOptions.AllowAll);
              HubConfiguration hubConfig = new HubConfiguration()
              {
                  EnableDetailedErrors = true,
                  EnableJSONP = true,
              };
  
              map.RunSignalR(hubConfig);
  
          });
  </code></pre>
  
  <p>I then start my webApp like this:</p>
  
  <p><code>SignalR = WebApp.Start&lt;Startup&gt;(options);</code></p>
  
  <p>options are the url's i'm registering. Startup is the startup class containing the signalR mapping above.</p>
  
  <p>Little lost here as I haven't built a self-hosting service before </p>