title: Get online users list xmpp with strophe
body: <p>I successfully connected to openfire server using strophe librabry.</p>
  
  <p>I want a javascript function that returns all users from a conference room.</p>
  
  <p>An another question is: how can i set/get current user's status?</p>
  
  <p>My current code:</p>
  
  <pre><code>$(document).ready(function() {
      connection = new Strophe.Connection(BOSH_SERVICE);
      connection.connect("null",
              "null",
              onConnect);
  });
  
  function onConnect(status)
  {
      if (status == Strophe.Status.CONNECTED) {
          $('#notifications').html('&lt;p class="welcome"&gt;Hello! Any new posts will appear below.&lt;/p&gt;');
          connection.addHandler(notifyUser, null, 'message', null, null, null);
          console.log('send ');
          var pres = $pres({to: 'chat@conference.neo-pc/catalin'});
          connection.send(pres);
  
  
      }
  }
  </code></pre>