Get chat room members list


I’m starting with XIFF and created a chat room for members to join. I was able to join the chat room with the xiff library and an xmpp client, but was trying to figure out how to retrieve the list of chat room members. How can I get all members of the chat room using XIFF, as well as keep the members list updated as people join/leave?