I am looking for a solution for developing iOS and Android chat to replace our current (unreliable, maybe poorly written by previous devs) XMPP/OpenFire chat. I came across
Firebase offers a few products:
I think you are looking for the Firebase realtime database.
There is no way currently to host the Firebase realtime database on your own servers.
Probably to late to be of any help but an alternative is RethinkDb. It is an open source realtime database and can be installed on your own machines. Never used it myself just researching my options like you.