title: How to apply signalr to different urls?
body: <p>Looking at this jQuery format below, I used signalr to broadcast live content in a certain view.</p>
  
  <p>So far, I can just broadcast a content in realtime in just one specific view, which is <strong>'/MyController/MyActionMethod'</strong>. </p>
  
  <p>Now I have two more views to broadcast the same content as I did on the first view, which are </p>
  
  <ul>
  <li><strong>'/MyController2/MyActionMethod2';</strong> and </li>
  <li><strong>'/MyController3/MyActionMethod3';</strong> respectively. </li>
  </ul>
  
  <p>The jQuery code below is being referenced in the first view, now I added some syntax like to enable the same code on the other two views:</p>
  
  <pre><code>$.connection.hub.url = 'http://localhost:1334/MyController2/MyActionMethod2';  
  $.connection.hub.url = 'http://localhost:1334/MyController3/MyActionMethod3';
  </code></pre>
  
  <p>but this code doesn't do anything. </p>
  
  <p>What am I missing here? Is there anything I need to add? Do I need also to reference that code in the two views as well? Please advise, thanks.</p>
  
  <pre><code>$(function() { 
      // Save the reference to the SignalR hub 
      var comHub = $.connection.commentHub;
      comHub.client.newContent = function () {
          // Sample functions to refresh the page based on information coming 
          // from the server.
          RefreshPage();
          UpdateContent();
  
      };
  
      // Invoke the function to be called back from the server 
      // when changes are detected  
  
      $.connection.hub.url = 'http://localhost:1334/MyController2/MyActionMethod2';
      $.connection.hub.url = 'http://localhost:1334/MyController3/MyActionMethod3';
  
      // Start the SignalR client-side listener
      $.connection.hub.start().done(function () { 
    $("#pushbutton").click(function () {
      //...some function to trigger here
  })
  
  })
  
  })
  </code></pre>