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

Add support connection keep alive message (aka heartbeat) #922

Merged

Conversation

sav007
Copy link
Contributor

@sav007 sav007 commented May 23, 2018

Add support of heartbeat messages sent by the subscription server.

Closes #895

@sav007 sav007 self-assigned this May 23, 2018
@sav007 sav007 requested a review from digitalbuddha May 23, 2018 11:18
Copy link
Contributor

@digitalbuddha digitalbuddha left a comment

Choose a reason for hiding this comment

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

Looks good. Only consideration is whether there should be a timeout max. Will everything operate successfully with a 24hr timeout as example?

@sav007
Copy link
Contributor Author

sav007 commented May 24, 2018

Not sure that we need the max timeout, as it's totally up to user to decide, if they want never reconnect than so be it. Otherwise what the max should be 30 sec or 1 hr?

The only I think we need to switch off this feature by default, and only enable it if user explicitly provide timeout that > 0

@digitalbuddha
Copy link
Contributor

cool all set then

Add support of heartbeat messages sent by the subscription server.

Closes apollographql#895
@sav007 sav007 force-pushed the feature-895/subscription-heartbeat branch from d261bb8 to 4cdcb38 Compare May 25, 2018 16:37
@sav007 sav007 merged commit d041d35 into apollographql:master May 25, 2018
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.

2 participants