title: Emitting to specific room of socket.io 1.X namespace
body: <ul>
  <li><p>I've implemented a number of socket.io namespaces that a user can connect to based on the page they are on.</p></li>
  <li><p>Emitting data to a particular namespace:room combination seems to require excess boilerplate.</p></li>
  <li><p>This is how I'm currently setting up the namespace and emitting events to sockets in a given room:</p></li>
  </ul>
  
  <hr>
  
  <p>1) Setting up the namespace</p>
  
  <pre><code>let newsNs = io.of('/news');
  newsNs.on(CONNECTION, socket =&gt; {
      socket.join('political');
  });
  </code></pre>
  
  <p>2) Emitting an event to sockets in the <code>/news</code> namespace and <code>political</code> room:</p>
  
  <pre><code>newsNs.in('political').clients((err, clients) =&gt; {
      clients.forEach(c =&gt; newsNs.connected[c].emit(EVENT, 'data'));
  })
  </code></pre>
  
  <hr>
  
  <p>Is there a cleaner and more concise way to emit to all sockets in a namespace:room combination without first iterating over each client and then deriving the sockets from someNs.connected?</p>