fullstack-tutorial icon indicating copy to clipboard operation
fullstack-tutorial copied to clipboard

Add Keep-Alive to keep the subscription WebSocket open

Open cdongieux opened this issue 5 years ago • 1 comments

Summary Playground fails with an error after playing with subscriptions.

Version Not applicable

Description In step 11. of the Apollo tutorial for Android (1), playing with the Subscription in the Playground (2) stopped working after some time with this error:

{
  "error": "Could not connect to websocket endpoint wss://apollo-fullstack-tutorial.herokuapp.com/graphql. Please check if the endpoint url is correct."
}

apollo_android_step11_subscription_playground_failure

(1) https://www.apollographql.com/docs/android/tutorial/11-subscriptions/ (2) https://apollo-fullstack-tutorial.herokuapp.com/

Let me know if you need further information.

cdongieux avatar Nov 06 '20 15:11 cdongieux

I believe this is a side effect of the Heroku timeouts: https://devcenter.heroku.com/articles/http-routing#timeouts

I'll move this ticket to the apollo-tutorial repo as it's not related to apollo-android (edit: it's moved 🎉 )

martinbonnin avatar Oct 11 '21 14:10 martinbonnin