Hi All, I have created a sample chat application using socket.io and Ionic. I want to integrate that with Firebase. Is there any way to do that?
What part of your chat do you want to “integrate” to Firebase then?
For example, you can store all the data in Firebase and then on all the clients use the firebase observable to grab data back in real time – thus eliminating the need for something like socket.io. This works quite elegantly and even handles brief internet disconnects well.
I’d be glad to provide examples if you need them, otherwise please let us know specifically what you wish to integrate.
I have developed one chat application which is not a real time one, where sending and pushing messages from and to firebase is like API calls. Could you please help me to make it real time?
@anandraj1411 this is already easy to do with Firebase. The idea of using Firebase with AngularFire (you can use an alternate Firebase library too) - is to facilitate real time communication.
An easy way to do this, for example is to create a firebase object when your app loads, subscribe to it’s data and when firebase updates occur the object automatically updates including all references to it - this is very real time.
Can you share any document link for that?
Google search: firebase live chat