Real Time Data Fetch

Hello everyone,

I am creating an application in python using pyqt5 and firebase as my database.
I wanted to know about the algorithm and the loops required to retrieve information from Firebase, whenever some data is updated to the database remotely.

Cheers,
@mondalraif450