Realtime does not get notified or retry socket failures correctly

未关闭
#101 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@ChiragAgg5k 已经在做这个了。

开始于 2026年2月24日。

评估

这个 Issue 还没有评估数据。

描述

👟 Reproduction steps
  1. Create a Realtime
  2. Call subscribe on it
  3. Background the app, but have it stay in memory (e.g. go home for 10s), or turn on airplane mode, or in some other way lose internet.
👍 Expected behavior

It should either:

  1. Automatically attempt to reconnect the socket
  2. Or at least provide a way for the client to get notified of failures.
👎 Actual Behavior

AppwriteWebSocketListener.onFailure is called after 5 seconds. The stack trace is printed, but the client app does not get notified.

Because onClosing isn't called, we don't automatically go through the reconnect attempt.

🎲 Appwrite version

Version 1.8.x

💻 Operating system

Linux

🧱 Your Environment

I'm using Kotlin io.appwrite:sdk-for-android:11.4.0

👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
主要语言
Kotlin
星标
156
派生
29
平均合并
8 小时 49 分钟
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

appwrite/sdk-for-android 的其他 Issue

查看 appwrite/sdk-for-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

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