π Bug Report: React Native Realtime
rohankm opened this issue Β· comments
π Reproduction steps
When i Subscribe to any events on react native expo. every 30sec to 1min I get "Realtime got disconnected. Reconnect will be attempted in 1 seconds., undefined" error.
Steps to reproduce
- just create a react native expo app
- subscribe to any collection and check the console logs
π Expected behavior
connection should be stable
π Actual Behavior
π² Appwrite version
Version 0.10.x
π» Operating system
MacOS
𧱠Your Environment
No response
π 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?
- I have read the Code of Conduct
Do you have cloudflare or any reverse proxy in front of appwrite?
Do you have cloudflare or any reverse proxy in front of appwrite?
im using nginx as reverse proxy
im using nginx as reverse proxy
Your web socket may be timing out. Do you have various timeout directives in place? See this.
On a side note...how did you get realtime working on react native? I thought it didn't work due to window being undefined.
im using nginx as reverse proxy
Your web socket may be timing out. Do you have various timeout directives in place? See this.
On a side note...how did you get realtime working on react native? I thought it didn't work due to window being undefined.
to be honest I have no idea! somehow the realtime is working and window.localstorage is not causing many issues except console logging periodically
im using nginx as reverse proxy
Your web socket may be timing out. Do you have various timeout directives in place? See this.
On a side note...how did you get realtime working on react native? I thought it didn't work due to window being undefined.
i added
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
to my nginx config file and I see that the bug is gone now. Thanks :)