简体   繁体   中英

Which protocol does Firebase use to communicate with mobile app?

How does Firebase communicate with my Android app? Does it use HTTP, HTTPS, Websocket or which protocol? I've declared firestore dependency and I call my backend let's say via .subscribe() or .get() methods. Thank you.

Cloud Firestore clients use HTTP/2 connections, not web sockets. Even if you send multiple requests, all of them are sent over a single connection.

On the other hand, the Realtime Database clients will always open a single socket connection between the application and Firebase servers.

More info in the article below:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM