title: SignalR message not being received on the client
body: <p>I've been trying to get my WPF client app to receive a SignalR message sent by the WCF service. I've tried many things and have now resorted to hacking away in the hopes that something just works. I've followed tutorials and examples online, and I simply can't get my WPF OnSignalRMessage() method to get called. <strong>Where am I going wrong here?</strong></p>
  
  <p>My hub:</p>
  
  <pre><code>public class PrestoHub : Hub
  {
      public void Send(string message)
      {
          Clients.All.OnSignalRMessage(message);
      }
  }
  </code></pre>
  
  <p>My startup class:</p>
  
  <pre><code>public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          var config = new HubConfiguration { EnableCrossDomain = true };
  
          app.MapHubs("http://localhost:8084", config);
      }
  }
  </code></pre>
  
  <p>The method that starts my SignalR host (within my WCF service host):</p>
  
  <pre><code>    private void StartSignalRHost()
      {
          const string url = "http://localhost:8084";
          WebApplication.Start&lt;Startup&gt;(url);
      }
  </code></pre>
  
  <p>The code to actually send some message:</p>
  
  <pre><code>GlobalHost.ConnectionManager.GetHubContext&lt;PrestoHub&gt;().Clients.All.OnSignalRMessage("snuh");
  Console.WriteLine("Sent 'snuh' to all clients...");
  </code></pre>
  
  <p>My WPF client methods:</p>
  
  <pre><code>    private void InitializeSignalR()
      {
          var hubConnection = new Connection("http://localhost:8084");
          hubConnection.Start();
          hubConnection.Received += OnSignalRMessage;
      }
  
      private void OnSignalRMessage(string data)
      {
          MessageBox.Show(data);
      }
  </code></pre>