Realtime does not get notified or retry socket failures correctly

Đang mở
#101 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@ChiragAgg5k đang làm issue này rồi.

Từ ngày 24/2/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

👟 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?
Ngôn ngữ chính
Kotlin
Star
156
Fork
29
Merge trung bình
8 giờ 49 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appwrite/sdk-for-android

Tất cả issue của appwrite/sdk-for-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.