Google-cloud-go: Firestone: real time updates to clients not supported ?

Created on 6 Jun 2018  Â·  6Comments  Â·  Source: googleapis/google-cloud-go

(delete this for feature requests)

firestire

Describe Your Environment

Golang latest on localhost.

I read on the firestire official docs that golang client does not support real time updates to the client. Other languages do.

Can you confirm please ?
Will it be fixed ?

Expected Behavior

e.g. Messages arrive really fast.

Actual Behavior

e.g. Messages arrive really slowly.

firestore question

Most helpful comment

There is an internal bug to update that page. Thanks for notifying us.

All 6 comments

It does. See DocumentRef.Snapshots and Query.Snapshots.

Can you point us to the doc page that said otherwise?

@jba

https://firebase.google.com/docs/firestore/query-data/listen

Note: Realtime listeners are not yet supported in the Python, Go, or PHP client libraries.

and when you try to view a sample

// Not yet supported in Go client library

Thank you for adding that.
That is the exact source I also found the info from.

On Mon, 11 Jun 2018, 05:48 Zech Dzegede, notifications@github.com wrote:

@jba https://github.com/jba

https://firebase.google.com/docs/firestore/query-data/listen

Note: Realtime listeners are not yet supported in the Python, Go, or PHP client libraries.

and when you try to view a sample

// Not yet supported in Go client library

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-go/issues/1024#issuecomment-396114969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATuCwgia8gUBi4bOVD9uRpn4-sgtgGfvks5t7eiXgaJpZM4UcreG
.

There is an internal bug to update that page. Thanks for notifying us.

@jba Ok great to hear that its the web page and not the golang SDK lacking that functionality...

Can't get the realtime updates to work.

snapshot, err := client.Collection("scheduledCommands").Query.Snapshots(context.Background()).Next()

What I'm trying to achieve is: whenever a document is added to a collection, I want to receive an event, but I can't get it to work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purohit picture purohit  Â·  4Comments

deelienardy picture deelienardy  Â·  3Comments

imkira picture imkira  Â·  4Comments

twoism picture twoism  Â·  4Comments

philippgille picture philippgille  Â·  3Comments