How to Implement Pagination with FindUsersRequest

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
ciaoamigos
Posts: 70
Joined: 05 Sep 2021, 16:57

How to Implement Pagination with FindUsersRequest

Post by ciaoamigos »

Hi everyone,

I'm working on an application using SmartFoxServer, and I need to implement pagination when retrieving users with the FindUsersRequest command. Currently, I'm able to fetch a list of users that match my search criteria, but I'm struggling to figure out how to split these results into pages (e.g., displaying 20 users per page and navigating between pages).

Is there a native way to add an offset or limit to the results returned by FindUsersRequest, or are there best practices for handling pagination on the client or server side?

Any suggestions or code examples would be greatly appreciated!

Thanks in advance.
Post Reply