Closed mixaobo closed 5 years ago
Google does not provide the websocket end point to connect to Firebase server directly. They provide the APIs (in SDK) for all their Firebase products included RTDB, for various platforms e.g JavaScript, Android, iOS, REST etc.
Only REST APIs are suitable for internet capable devices with limited resource which is not depending on platform or OS.
That's is the only approach where we use to communicate to Firebase using HTTP request to the REST API end point.
@mixaobo
i see you use HTTP protocol.
we use to communicate to Firebase using HTTP request
BTW data is send via HTTPS to Firebase and back.
Sorry this question isnt about your bug. This is question for which protocol do you use to push data. In the case of Firebase Realtime Database, clients will be connected to the database and will maintain an open bidirectional connection via websockets i found this one said Firebase use websocket to receive or push data to client. in you code, i see you use HTTP protocol. i have confuse a bit.
Could you confirm which one is correct?