Skip to content

why-jay/firebase-rx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

firebase-rx

This repo brings this Gist to npm.

Usage

var FirebaseRx = require('firebase-rx');

var source =
  new FirebaseRx("https://<your firebase>.firebaseio.com")
    .observe('<event type>');

console.log(source instanceof Rx.Observable);

source.subscribe(function (changeData) {
  // If event type is 'value', changeData is a DataSnapshot
  // Otherwise, changeData is:
  // {
  //   snapshot: DataSnapshot, 
  //   prevName: optional string of previous child location
  // }
});

About

Firebase with an observe() method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published