How to stream data from firebase with ESP32 connected to GSM module SIM A7670C..?

I am using SIM A7670C GSM module connected to ESP32 Serial 2 and able to make the HTTP connection.
Below is the code I have written to open net as per AT_Commands of the A7670C.

How do I stream data from firebase instead of using GET command to save data uselessly?

include <HardwareSerial.h>
  // Hardware Serial 2 pins
  #define RXD2 16
  #define TXD2 17

HardwareSerial  MODEM(2);

const String APN  = "airtelgprs.com";
const String USER = "";
const String PASS = "";

const String FIREBASE_HOST  = "My_Project_link";
const String FIREBASE_SECRET  = "DB_Secret";

void setup() {
Serial.begin(115200);
MODEM.begin(115200, SERIAL_8N1, RXD2, TXD2); 

Serial.println("Initializing MODEM...");
  sendATCommand("AT", 2000);
  sendATCommand("AT+CREG?", 2000); // Network registration
  sendATCommand("AT+CGATT=1", 2000); // GPRS attach
  sendATCommand("AT+NETOPEN", 5000); // Open network
  sendATCommand("AT+IPADDR", 2000); // Check IP
}

void loop(){

}

Does firebase have an option to stream data?

Yes, Firebase offers streaming capabilities for both Realtime Database and Cloud Firestore. Specifically, the Realtime Database supports streaming via the REST API using Server-Sent Events (SSE) or EventSource. Cloud Firestore allows you to listen for changes in data using a stream of snapshots, effectively creating a live stream of data updates.

Answer by google AI

Was this ever answered? Did you find out how to stream from Firebase?

Use the A7670C in PPP mode so your ESP32 gets a data connection, connect via WiFiClientSecure, then use Firebase REST API to read/write data. Send GET/PUT/PATCH requests in a loop to “stream” updates. Make sure to include your Firebase URL + API key and keep SSL enabled.