title: Pusher: How to get private channel subscription count in pusher?
body: <p><strong>What I want:</strong> How can i get subscription count after subscription of a private channel in pusher.Actually i want private chat between only 2 users.</p>
  
  <p><strong>What I Know and Doing</strong>: . I know that i private channel can be subscribed by multiple clients(users).So whenever server trigger the data to private channel then all subscribed user get that response.</p>
  
  <p><strong>Channel subscription code in java script (Client-1):</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;head&gt;
    &lt;title&gt;Pusher Test&lt;/title&gt;
    &lt;script src="https://js.pusher.com/3.2/pusher.min.js"&gt;&lt;/script&gt;
    &lt;script&gt;
  
      // Enable pusher logging - don't include this in production
      Pusher.logToConsole = true;
      var pusher = new Pusher('PUSHER_KEY', {
        authEndpoint: 'http://localhost:8080/medecube/rest/initial/pusher/auth',
         auth: {
            headers: {
              'X-CSRF-Token': "12345"
            }
          } 
  
      });
  
      var channel = pusher.subscribe('private-channel');
      channel.bind('pusher:subscription_succeeded', function() {
          var triggered = channel.trigger('client-myEvent', { "message": "i am pusher client1" });
        }); 
  
    &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Same channel subscribed by client 2
  <strong>Channel subscription code in java script (Client-2):</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;head&gt;
    &lt;title&gt;Pusher Test&lt;/title&gt;
    &lt;script src="https://js.pusher.com/3.2/pusher.min.js"&gt;&lt;/script&gt;
    &lt;script&gt;
  
      // Enable pusher logging - don't include this in production
      Pusher.logToConsole = true;
      var pusher = new Pusher('PUSHER_KEY', {
        authEndpoint: 'http://localhost:8080/medecube/rest/initial/pusher/auth',
         auth: {
            headers: {
              'X-CSRF-Token': "12345"
            }
          } 
  
      });
  
      var channel = pusher.subscribe('private-channel');
      channel.bind('pusher:subscription_succeeded', function() {
          var triggered = channel.trigger('client-myEvent', { "message": "i am pusher client2" });
        }); 
  
    &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p><strong>Event Trigger by server:</strong></p>
  
  <p>Pusher : <code>Event recd : {"event":"client-myEvent","data":{"message":"i am pusher client2"},"channel":"private-channel"}</code></p>
  
  <p>Then both client get same response. I want only one user subscribe only 1 channel.</p>