flipper
flipper copied to clipboard
Question: Is it possible to notify database plugin that database has been updated.
Whenever we switch to the database plugin or if we click on the refresh button
connection.receive(
DATABASE_LIST_COMMAND,
....
is called thus, the info about our database is updated in the desktop client.
Is it possible to do the other way around, that is, notify the client that it should update the UI because our database has changed, thus not requiring to press the refresh button to see the most up to date information?
Thanks
Flipper support bidirectional transportation, so if there is a specific event on the database you would like to trigger this upon, I think should be able to subscribe to it and notify the desktop plugin using connection.send (and using client.receive in the desktop plugin implementation). The sources of the Database plugin can be found here (Android) and here (Desktop)
I want to work on this issue provide me a brief information