apollographql / apollographql/fullstack-tutorial

Add Keep-Alive to keep the subscription WebSocket open

Open
#240 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/6403886/98381728-92f30180-204a-11eb-9e33-d0ec305c743b.png)

(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.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is identified. Start by reproducing the failure in the linked Playground and trace the subscription WebSocket endpoint and its connection lifetime. Done means the subscription WebSocket remains open during continued Playground use instead of eventually reporting a connection error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, node.js, typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.