Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Fix GraphQL subscriptions #254

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Fix GraphQL subscriptions #254

merged 1 commit into from
Nov 12, 2020

Conversation

serras
Copy link
Collaborator

@serras serras commented Nov 12, 2020

Fixes #247

Summary. I found two errors in the subscriptions code:

  1. The WebSockets initialization was not sending the right "supported protocols" back;
  2. The keep-alive message were using the wrong name. According to the subscriptions-transport-ws source code it had to be ka.

It seems that we were using a more lenient client when testing before. With this changes, this work with both graphqurl (which uses the Apollo client) and with the Python GraphQL client.

@serras serras requested a review from kutyel as a code owner November 12, 2020 12:36
@serras serras self-assigned this Nov 12, 2020
@serras serras added the graphQL label Nov 12, 2020
Copy link
Member

@kutyel kutyel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@serras serras merged commit bf5f605 into master Nov 12, 2020
@serras serras deleted the fix-graphql-subscription branch November 12, 2020 12:50
@vladimirlogachev
Copy link
Contributor

I think ka is not cryptic enough.

kutyel pushed a commit that referenced this pull request Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How can I get GraphQL subscriptions working?
3 participants