Hi there,
In my company, we're leveraging PowerSync to build a real-time chat app, and one challenge we're facing is figuring out when a given user (session) is online or not. We're evaluating some options for that, but it would be very handy if we could make an API call to the PowerSync service to ask if a user (session) is online. Better yet, we could pass an array of IDs, and it could tell us which of them are currently online.
This way, our backend could decide based on that info whether to store a row in a database and wait for PowerSync to send it, or send a push notification instead. This presence API doesn't have to be 100% accurate; a best-effort thing would be enough, where an ok means the user (session) was online recently, even though they might have closed the app a few seconds ago.
I imagine the PowerSync service already has that info stored somewhere, so why not expose it and avoid the need to add another dependency just for that, right?
Hi there,
In my company, we're leveraging PowerSync to build a real-time chat app, and one challenge we're facing is figuring out when a given user (session) is online or not. We're evaluating some options for that, but it would be very handy if we could make an API call to the PowerSync service to ask if a user (session) is online. Better yet, we could pass an array of IDs, and it could tell us which of them are currently online.
This way, our backend could decide based on that info whether to store a row in a database and wait for PowerSync to send it, or send a push notification instead. This presence API doesn't have to be 100% accurate; a best-effort thing would be enough, where an ok means the user (session) was online recently, even though they might have closed the app a few seconds ago.
I imagine the PowerSync service already has that info stored somewhere, so why not expose it and avoid the need to add another dependency just for that, right?