title: Connect to SignalR Hub after connection start
body: <p>Let's say i have two or more hubs in my server application. My javascipt client (Angular SPA) initialy needs a connection to the first hub, and needs to subscribe to a method like this:</p>
  
  <pre><code>connection = $.hubConnection(appSettings.serverPath);
  firstHubProxy = connection.createHubProxy('firstHub');
  firstHubProxy('eventFromFirstHub', function () {
          console.log('Method invokation from FirstHub');
              });
  connection.start().done(function (data) {
                  console.log("hub started");
              });
  </code></pre>
  
  <p>Everything is working fine. Now a user of my Angular SPA may decide to put a widget on his page, which needs to subcribe to a method from the second hub:</p>
  
  <pre><code>secondHubProxy = connection.createHubProxy('firstHub');
  secondHubProxy('eventFromSecondHub', function () {
          console.log('Method invokation from SecondHub');
              });
  </code></pre>
  
  <p>The method from the second hub is not working. I guess because it was created after <code>connection.start()</code>.</p>
  
  <p>My example is simplified, in my real appplication there will be 20+ hubs to which users may or may not subscribe by adding or removing widgets to their page.</p>
  
  <p>As far as i can tell i have two options:</p>
  
  <ol>
  <li>call connection.stop() and then connection.start(). Now both hub subscriptions are working. This just doesn't feel right, because on all hubs, the  OnConnected() event fires, and my application will be starting and stopping all the time.</li>
  <li>create hub proxy objects for all possible hubs, subscribe to a dummy
  method on all possible hubs, so the application can subscibe to hub
  methods later if desired. This also doesn't feel right, because i
  need to create 20+ hub proxies, while i may need just a few of
  those. </li>
  </ol>
  
  <p>Is anybody aware of a pattern which i can use to accomplish this? Or am i missing something very simple here?</p>