#[SOLVED] Does Appwrite React Native SDK Support Realtime?
10 messages · Page 1 of 1 (latest)
No, I wouldn't make that assumption about anything lol
You can subscribe to realtime events on any client side sdk.
Here is the code in the react-native sdk that does it, if you were curious.
https://github.com/appwrite/sdk-for-react-native/blob/main/src/client.ts#L367
They offer tons of sdks, it's hard to provide examples for every single one, and the reactive native sdk is very very similar to the web sdk.
LOG [app Index]
ERROR WebSocket error: {"isTrusted": false, "message": "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)"}
LOG WebSocket connection closed
ERROR Realtime got disconnected. Reconnect will be attempted in 1 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 1 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 1 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 1 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 1 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 5 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 5 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 5 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
ERROR Realtime got disconnected. Reconnect will be attempted in 5 seconds. The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
i followed the web sdk since there was no example and this is the error I am getting
will take a look at the link u provided to see if I am missing something
Are you able to get anything else working? I believe that error is a unknown host error, so I don't think that's an appwrite issue directly? Are you self hosted?
everything else is working, i can login, i can access the database... it is only the realtime that doesnt work
Got it working!!
What was the issue?
Two things, one I was not constructing the params properly for the file and two, the error message was not clear when u upload a file that is too big