I'm trying to get a list of (likely) online players in order to match opponents in a card game. I'm thinking a way to do this would be by assigning players a set currency when they log into the game. Then on log out, deduct that currency. Then I can have a segment that has all players with that currency value as greater than 0 and run a task every few minutes (or as needed) on the client side that pulls a list of player data in that segment to show all online players. It doesn't need to be real-time, so a few minutes off is fine.
I've set up the segment and set up a rule that adds the currency automatically to a player on event type 'playfab.player_logged_in'. Is there a way to do a similar rule on log out? I couldn't see a logged out event type in the list.