Real-time API for **other** user's active games

Hello,

I’m starting to play around with the OGS API a little bit, and was wondering if it was possible to have a socket connection that receives info about another player’s active games; something similar to active_game, but that works for a generic user_id, and not just for the authenticated user. I’ve checked the REST and RT API documentations and files, and couldn’t find anything like that. The current solution is to poll the REST API periodically to get a list of user’s games (filtering using ?ended__isnull=true), keep a list of such games (in order to avoid duplicates) and then work based on that.

I imagine there might be a preference towards keeping the RT API limited to operations that would be used by the original (or third party) front-end, where this wouldn’t necessarily make the cut, but still I thought I should ask.

Best,

3 Likes