apollographql / apollographql/fullstack-tutorial

Add Keep-Alive to keep the subscription WebSocket open

未关闭
#240 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.2k
派生
808
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

未确定源文件或测试。首先在链接的 Playground 中复现故障,并跟踪 subscription WebSocket 端点及其连接生命周期。完成的标准是:在持续使用 Playground 期间,subscription WebSocket 保持打开,而不是最终报告连接错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
graphql, node.js, typescript
领域
api, backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。