you subscribed before updating the document?
how many times are you subscribing? are you subscribing to anythign else anywhere?
I subscribed before updating
I wrote subscribe code once, but I do recurrent app refresh to see if it's working.
I do recurrent app refresh to see if it's working.
What do you mean?
That's, i restart the app to see if real-time flow of data is coming in
take a look at your recording at 18 seconds before you restarted the app. look at the debug console. you'll see the event printed
when you restarted the app, you cleared away the debug logs
Appwrite's realtime works by executing the callback when the event occurs
Oooo, that's true, I didn't even notice it
works, I appreciate you man
I never knew I was at the verge of it working
I appreciate your tireless efforts towards my project
I'll be willing to support the appwrite ecosystem in the future as I make business profit, I'm moved by the love I enjoy from you all @Steven @safwan @Maniac_Fighter @Binyamin @others
Please sir one more thing, will the real-time work for a dart cloud function that is asynchronous and awaiting a response from an API?
If yes, kindly give an hint of how it should be.
I appreciate you always Sir @Steven Apologies for taking your time
Would you please clarify what you mean? What are your trying to do with realtime in Appwrite functions?
To get status of a payment made by customer to know if it's successful or failed or pending.
Am getting a long data stream since it's getting all the content of the document, can't I just get the variable for a particular attribute
Not at the moment. You can pick out what you need client side
Yes, am thinking of how to do the filtering
Cause if I use index and customer balance (string length increases with other attributes), I'll start getting wrong data later
What do you mean?
User balance may change from 100 to 10000 the change in length will affect my string filter if I do so via index
What do you mean by index?
the index number for each string value @Steven
Uhh. It should be a map...just like if you were using the data attribute from a Document
Ooo, really
You're right Sir, I appreciate you dearly, and I never knew Sir
Was thinking it's ordinary string
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.