title: iOS XMPP framework get all registered users
body: <p>In my chat application I want to get all online registered users. So everybody and not only people in my roster which is achieved with this code:</p>
  
  <pre><code>- (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence {
  // a buddy went offline/online
  NSString *presenceType = [presence type]; // online/offline
  NSString *myUsername = [[sender myJID] user];
  NSString *presenceFromUser = [[presence from] user];
  if (![presenceFromUser isEqualToString:myUsername]) {
      if ([presenceType isEqualToString:@"available"]) {
          [_chatDelegate newBuddyOnline:[NSString stringWithFormat:@"%@@%@", presenceFromUser, @"chat.denederlandsewateren.nl"]];
      } else if ([presenceType isEqualToString:@"unavailable"]) {
          [_chatDelegate buddyWentOffline:[NSString stringWithFormat:@"%@@%@", presenceFromUser, @"chat.denederlandsewateren.nl"]];
      }
  }
  }
  </code></pre>
  
  <p>With this code the users only sees other users who are 'friends' but I need all users registered on this particular domain. Is this possible with ejabberd?</p>