title: How do I list active subscribers using Faye?
body: <p>I'm using <a href="http://faye.jcoglan.com/" rel="noreferrer">Faye</a> for dispatching messages and it works well. But I want to retrieve the active connections for a given channel, and things behave a bit differently: See "<a href="http://groups.google.com/group/faye-users/browse_thread/thread/b7243a25253a579d" rel="noreferrer">list active subscribers on a channel</a>".</p>
  
  <p>I want to show the list of current users chatting in a room. I tried to do this by intercepting the <code>/meta/subscribe</code> channel via <a href="http://faye.jcoglan.com/ruby/extensions.html" rel="noreferrer">extensions</a> but I'm not quite sure how to send data like the username to the server.</p>
  
  <p>An intercepted message to <code>/meta/subscribe</code> looks like this:</p>
  
  <pre><code>{"channel"=&gt;"/meta/subscribe", "clientId"=&gt;"50k233b4smw8z7ux3npas1lva", "subscription"=&gt;"/comments/new", "id"=&gt;"2"}
  </code></pre>
  
  <p>It'd be nice to send <code>"username" =&gt; "foo"</code>.</p>
  
  <p><a href="http://faye.jcoglan.com/ruby/monitoring.html" rel="noreferrer">Monitoring</a> is interesting too, but again, it looks like I can't send any specific data on-subscribe.</p>
  
  <p>Does anyone have experience with these kind of issues?</p>