appwrite
appwrite copied to clipboard
The flutter SDK does not automatically reconnect.
🔖 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?
- [X] I have read the Code of Conduct
I encountered this issue. https://discord.com/channels/564160730845151244/1256922603306745956
Maybe the core team must implement something like ping/pong on websocket. According to this
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.
Closing as a duplicate of https://github.com/appwrite/sdk-for-flutter/issues/108. Feel free to add a 👍🏼 to that issue.