netlib icon indicating copy to clipboard operation
netlib copied to clipboard

Implement lobby filtering for the list() function

Open aglitchman opened this issue 2 years ago • 3 comments

https://github.com/poki/netlib/blob/main/internal/signaling/stores/postgres.go#L253C4-L253C4

I would like to exclude lobbies without players from the list.

Plus, I would like to have the lobbies to be sorted by the date the last peer was connected.

aglitchman avatar Aug 17 '23 11:08 aglitchman

Hey @aglitchman, thanks for the suggestion. We are currently fixing some issue with lobbies and we will put this near the top of our roadmap. 👍🏻

koenbollen avatar Aug 23 '23 11:08 koenbollen

Most of this was implemented in the last releases. Proper documentation is still to come.

erikdubbelboer avatar May 31 '24 09:05 erikdubbelboer

In fact, it works great! 💯 I use it with the {"playerCount": {"$gte": 1}} filter to get lobbies with players.

aglitchman avatar Jun 03 '24 18:06 aglitchman