heroumi wrote:Hi, I am still working with Smartfox. There is a remarkable part about GetListroom, which, according to the description, will return the entire list of rooms. What if there are thousands of waiting rooms or several thousand rooms. Even classifying rooms by Getlistroom by group, if each group has thousands of rooms, the Client will experience lag. Is there a way to get only 50-100 random rooms at a time? Or will I have to build my own backend
You can organize Rooms in Groups and filter them in that way. You can also use a FindRoomRequest which will filter Rooms with a custom MatchExpression, to further reduce the amount of results.
FindRoom also exists on the server side (see SFSApi.findRoom()) which does the same and can be used in your server side code. From server side you have an even larger number of filters that you can apply.
http://docs2x.smartfoxserver.com/api-do ... ession,int)
Cheers