I want to open a connection with Firestore REST API and push or receive events on data changes.
This can be done using the EventSource / Server-Sent Events protocol.
I found the documentation for Firebase Realtime database REST API here https://firebase.google.com/docs/database/rest/retrieve-data#section-rest-streaming and here https://firebase.google.com/docs/reference/rest/database
But I could'nt find the documentation for Firestore REST API and if it is even possible to stream from it.
I tried sending get request with postman and adding the Accept header to text/event-stream but it just returns a normal response and when I change the data in my firestore database postman doesn't receive anything. This is the format of the URL I'm requesting: https://firestore.googleapis.com/v1/projects/PROJECT_ID/databases/(default)/documents/MY_DOCUMENT?key=MY_KEY
Note: I'm already able to communicate with the rest api, my question is about the streaming capability of the api using EventSource / Server-Sent Events protocol, like this one for firebase realtime databse firebase.googleblog.com/2014/03/… but I want to know if it is available for firestore