Realtime does not get notified or retry socket failures correctly

オープン
#101 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appwrite/sdk-for-android のほかの issue

appwrite/sdk-for-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。