Open adam-hurwitz opened 4 years ago
Hello Adam!
It's not implemented yet but we are definitely planning to do that later.
Of course, you can make a PR π. We always welcome contributions.
It doesn't look like a big deal. It requires some updates in Drive:
subscribeToDocuments
.fetchDocuments
accepts.We have a similar mechanism in DAPI SPV endpoints (subscribeToTransactionsWithProofs
) but much more complicated.
Hey Ivan, π
I appreciate the invite to contribute to the code! If my co-founder and I use DAPI our next feature we'll be exploring this further and would love to add value to the codebase.
Sounds good! Don't hesitate to ask and share your ideas.
Question
An example of this is a client that needs to listen for a specific document to be updated from the
fetchDocuments
call.Use Case
fetchDocuments
listening for any inbound requests. Once a request is received they can verify/decline (similar to Venmo in the U.S.), using existing Dash Wallet authentication.Example from Firebase's Firestore Database
Firebase's Firestore client libraries implement this pattern as outlined in Get realtime updates with Cloud Firestore.