答案 0 :(得分:0)
The Firebase SDK
(JavaScript, Java and Objective-C/Swift) use web sockets
for communicating with the Firebase database
, with fallback to long-polling.
The Firebase REST API is used with regular HTTP
verbs (GET
, PUT
, POST
, DELETE
and PATCH
) in a request/response. On top of that you can use Firebase's REST streaming API
uses SSE (server-sent events)
over HTTP
.