Sunday, 21 October 2018

How to use Firebase with a linux based client app for bidirectional messages communication with server

I've seen google's documentation and alot of examples over the net about how to use Firebase within Android / iOS applications, but I want to develope a client Firebase application which runs on a linux machine.

My requirments are:

  1. Client runs on linux environment (either writtern in C++ or python).
  2. Server is written in Javascript (NodeJS).
  3. Server and client should have bi-directional communication between them using firebase realtime database.

I've seen also the firebase REST api, but I assume that is not good enough for me since I haven't seen a client listener api that listens on a somthing like onValueChanged.

Question:

How can I implement a linux based app in C++ or python that listens to messages from server (data changes) using a listener, without having to call some get function each and every few seconds. (just like NodeJS have the ref.on("child_changed",...) or ref.on("value",...) ?


Much appreciated



from How to use Firebase with a linux based client app for bidirectional messages communication with server

No comments:

Post a Comment