Skip to content

Feature proposal: Subscription presence #953

@lstrzebinczyk

Description

@lstrzebinczyk

I would like to suggest a new feature, like me and @benwilson512 discussed in the slack.

Phoenix proper allows managing presence per-channel with Phoenix.Presence. Absinthe currently lacks such feature, and it would be very beneficial to have something similiar.

Currently the only way for any application to support presence is to add a non-absinthe channel to the backend and ask frontend to join it in addition to subscribing to absinth-based graphql subscription.

I imagine, since, channels allow defining join/3 and terminate/2 functions, it should be possible to do the same per-graphql-subscription.

I know little of absinthe internals, but I offered my help on the slack, so, I'm happy to help designing this feature in any capacity I'm able to.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions