appwrite icon indicating copy to clipboard operation
appwrite copied to clipboard

The flutter SDK does not automatically reconnect.

Open Hopheylalal opened this issue 1 year ago • 2 comments

🔖 Enhancement description

Please add it

🎤 Pitch

If the application is not used for a long time, realtime disconnected. 2.if the application goes into the background, the connection is interrupted. 3.never reconnects. you need to restart the application.

on the other hand, in the same application, socket io works perfectly. no breaks. if a break occurs, the connection is restored. for several months there is no error.

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Hopheylalal avatar Jun 28 '24 18:06 Hopheylalal

I encountered this issue. https://discord.com/channels/564160730845151244/1256922603306745956

moshOntong-IT avatar Jun 30 '24 13:06 moshOntong-IT

Maybe the core team must implement something like ping/pong on websocket. According to this

What is Ping/Pong

The WebSocket specification defines ping and pong message opcodes as part of the protocol. These can serve as a way to keep a connection active even if data is not being transmitted. Pings may be sent in either direction. If the client receives a ping, a pong reply will be automatically sent.

moshOntong-IT avatar Jun 30 '24 13:06 moshOntong-IT

Closing as a duplicate of https://github.com/appwrite/sdk-for-flutter/issues/108. Feel free to add a 👍🏼 to that issue.

stnguyen90 avatar Jul 04 '24 00:07 stnguyen90