Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle connection_init and connection_terminate #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fdev
Copy link

@fdev fdev commented Apr 12, 2020

When using Apollo Client (specifically subscriptions-transport-ws) the websocket client expects either a connection_ack or connection_error response from the server after sending the initial connection_init message.

Currently, graphene-subscriptions just ignores these message types which causes the client to never emit connected events and may cause a maxConnectTime trigger to be performed.

@jaydenwindle
Copy link
Owner

Thanks a ton for the PR @fdev! I'd love to merge this in.

Would you mind adding some unit tests as well?

@fdev
Copy link
Author

fdev commented Apr 13, 2020

Thanks for the quick response @jaydenwindle. I have added tests and squashed a bug in the process.

By the way, I'm getting warnings about the id variable overriding a built-in Python function.

@fdev fdev marked this pull request as draft April 13, 2020 11:58
@fdev fdev marked this pull request as ready for review April 13, 2020 12:20
@qwaqwa93TW
Copy link

@jaydenwindle Why is this PR not being merged? I am suffering from that timeout problem

@wnaldj1589TW
Copy link

Is anyone watching this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants