I have two clients and I’m looking for a way to send a button click on one client and listen on the other client.
It is possible to detect data changes using Cloud Firestore’s onSnapshot()
. However, this is a little different from what I’m looking for. What I’m asking for is to send something that can identify multiple buttons (for example, button A, button B).
Cloud Firestore sends data in units of documents, so a huge number of “number of users * number of buttons” is required.
Is there a way to listen to less complex data such as buttons?