I am new to Firebase. I believe it is a great tools for developing real-time applications.
I am wondering though, since objects/arrays in applications receiving updates(sync) from the firebase server, will those connections occupy and eat up a lot of bandwidth? Will firebase disconnect the clients that has no traffic after a certain time period? (like after one hour for example?)
How do I release the resources after my clients (mobile clients specially) "turn-off" the app? How do I re-connect to firebase resources when my clients "open" my app?
More specifically, I wrote a simple chat app without authentication, neither have any session logon/off. My app can work on browsers (via ionic serve) and it can also work on the real mobile devices. However, after a couple of hours, I got a SSL connection error as below:(on real-mobile devices)
Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made.
Then my mobile app can no longer connect to firebase resources any more, unless I re-deploy the app, then it will live for a couple of hours then "die" again.
I am looking for the best practice to use firebase, or at least use it correctly. Any good example code out there? Thank you for your help :-)