Skip to content

Feature request: expose API endpoint for online presence #524

@giovannibonetti-jota

Description

@giovannibonetti-jota

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions