This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Firebase = require("./firebase-node.js"); | |
| function Queue(ref) { | |
| this._ref = ref; | |
| } | |
| Queue.prototype.pop = function(cb) { | |
| this._ref.startAt().limit(1).once("child_added", this._pop.bind(this, cb)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function myGetUserMedia(constraints, cb) | |
| { | |
| function errCb(code) | |
| { | |
| cb(code, null); | |
| } | |
| function successCb(stream) | |
| { |