与Firebase进行本机通信

时间:2017-06-09 12:22:17

标签: firebase react-native protocols communication

我有这个关于本地反应和Firebase的非常愚蠢的问题:他们之间如何相互沟通?协议使用的是什么?

1 个答案:

答案 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.