apollographql / apollographql/fullstack-tutorial
Add Keep-Alive to keep the subscription WebSocket open
- 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."
}
```

(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