How to handle timeout in queries with Firebase
<p>I noticed that if I execute a query in Firebase and the database server is not reachable, the callback waits just forever (or until the server is reachable again).</p>

<p>Where this behavior is quite natural for the asynchronous approach used, it would nevertheless be useful to have an easy way to specify a timeout so you could inform the user about the status.</p>

<p>Is there such an option and I just missed it - or it really missing?
Or how would you solve this problem?</p>