Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Firestore backend timeout for configuration #1302

Open
jeremylorino opened this issue Oct 10, 2018 · 2 comments
Open

Expose Firestore backend timeout for configuration #1302

jeremylorino opened this issue Oct 10, 2018 · 2 comments

Comments

@jeremylorino
Copy link

const ONLINE_STATE_TIMEOUT_MS = 10 * 1000;

As a developer, I would like to be able to specify how long my client should wait on a connection to the database before it fails and throws an error; so that I can control my customers' experience.

@mikelehen
Copy link
Contributor

@jeremylorino Just to be clear, you're doing a get() call and wanting it to fail either faster or slower than 10s?

If it's helpful, you could basically accomplish this by using .onSnapshot() to listen for events, and then creating your own setTimeout() trigger.

@jeremylorino
Copy link
Author

jeremylorino commented Jan 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants