Connect to Firebase from Node

Firebase, being a real time database supports only events that you can register to be notified in case stuff changes on the server.

To read data once like in traditional sense, use this :

Reading Data Once

In some cases it may be useful for a callback to be called once and then immediately removed. We've created a helper function to make this easy:

NODE.JS

ref.once("value", function(data) {
  // do some stuff once
});

 

Code: https://github.com/tkhemani/firebase-node-client/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s