title: SignalR multiple chat rooms
body: <p>I am planning to create a chat application, and I've read that <a href="http://en.wikipedia.org/wiki/SignalR" rel="noreferrer">SignalR</a> is one of the best technologies to apply.</p>
  
  <p>I've seen examples of it, but they only have a single chat room.</p>
  
  <p>I want to have multiple chat rooms. The user will just choose one of those chat rooms.</p>
  
  <p>Although I'm a beginner, I think to create a single chat room in SignalR is by this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          var connection = $.connection.communicator;
          connection.receive = function (from, msg) {
              $("#chatWindow").append("&lt;li&gt;" + from + ": " + msg + "&lt;/li&gt;");
          };
          $.connection.hub.start();
  
          $("#btnSend").click(function () {
              connection.broadcast($("#txtName").val(), $("#txtMsg").val());
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>var connection = single chat room (I'm not sure)</p>
  
  <p>So if I have many connections (for example, connection1, connection2, connection3....) I can have multiple chat rooms?</p>
  
  <p>Once again, I am not sure if this is correct... Please help me on how to implement multiple chat rooms...</p>
  
  <p>(PS: I have seen JABBR, but its code is making my nose bleed. Can you provide simple examples, please?)</p>