Skip to content

Fix resubscribing after GraphQL subscription finished by server#1368

Merged
tyranron merged 5 commits intographql-rust:masterfrom
50U10FCA7:fix-graphql-transport-ws-resub
Mar 5, 2026
Merged

Fix resubscribing after GraphQL subscription finished by server#1368
tyranron merged 5 commits intographql-rust:masterfrom
50U10FCA7:fix-graphql-transport-ws-resub

Conversation

@50U10FCA7
Copy link
Contributor

@50U10FCA7 50U10FCA7 commented Mar 5, 2026

Synopsis

Current graphql-transport-ws implementation (and graphql-ws too) doesn't allow to resubscribe to same id after subscription was completed by server.

Solution

Retain stoppers removing the completed ones before checking whether user can subscribe to id.

Checklist

  • Tests are added
  • Documentation is added (including Book)
  • CHANGELOG is filled

@50U10FCA7
Copy link
Contributor Author

FCM

Fix resubscribing in graphql-transport-ws protocol (#1368)

@50U10FCA7
Copy link
Contributor Author

@tyranron Found that problem is related to graphql-ws protocol too. Think we should fix both of the protocols in this PR. Can I mark this PR as Draft to push the fix?

@50U10FCA7 50U10FCA7 marked this pull request as draft March 5, 2026 15:21
@50U10FCA7 50U10FCA7 marked this pull request as ready for review March 5, 2026 15:23
@50U10FCA7
Copy link
Contributor Author

@tyranron graphql-ws fixed.

@50U10FCA7 50U10FCA7 changed the title Fix resubscribing in graphql-transport-ws protocol Fix resubscribing after GraphQL subscription finished by server Mar 5, 2026
@tyranron tyranron added enhancement Improvement of existing features or bugfix k::api Related to API (application interface) labels Mar 5, 2026
@tyranron tyranron added this to the 0.18.0 milestone Mar 5, 2026
@tyranron tyranron added the area::subscriptions Related to GraphQL subscriptions label Mar 5, 2026
@tyranron tyranron enabled auto-merge (squash) March 5, 2026 16:26
@tyranron tyranron merged commit cef5b9b into graphql-rust:master Mar 5, 2026
513 of 543 checks passed
@50U10FCA7 50U10FCA7 deleted the fix-graphql-transport-ws-resub branch March 5, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area::subscriptions Related to GraphQL subscriptions enhancement Improvement of existing features or bugfix k::api Related to API (application interface)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants