rmosolgo / rmosolgo/graphql-ruby

Unsubscribed callback method on Subscription

Open
#3,714 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
5.4k
Forks
1.4k
Avg merge
23h 19m
Merged PRs (30d)
28

Description

Hi,

I'd like to know if there's a way to have a callback method like def subscribe for subscriptions but for unsubscribed.

We have a lot of context information in each subscription that we need to use when the subscription is unsubscribed and we only have it in the subscription not when the channel has been unsubscribed.

Is it possible to have a workaround this right now or possibly add this functionality?

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point. Start by tracing the subscription lifecycle and how subscribe and unsubscribe events currently expose subscription context. Define the callback behavior and a testable completion case with the maintainers before attempting implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, ruby
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.