How to alert elements of a database change

I have several site users that can add information to one database. The contents of the database are loaded into a repeater on a page that all users have access to.

I would like any changes to the database shown in real-time regardless of who made the change. So if I have the web page open and another user adds to the database, the repeater on the site I’m looking at will know to refresh and display the new item.

Is this possible in Wix? Maybe the Wix Realtime API would be helpful or there could be something simpler?

Thanks!

I’ve not yet used it myself, but I’d certainly expect the Realtime API to be the perfect tool for this. It might make sense to observe collection changes with Data Hooks because you’ll need be in the backend to publish messages anyway.

Yes with the help of data hook and Wix realtime you can here is an sample
Peer to Peer message app (It’s still has work in UI, but check it out if you want to get an idea)
https://github.com/Salman2301/wix-chat-component
Feel free to ask any question below