Created
March 28, 2015 16:16
-
-
Save crcn/00fbf8a52b8e70eade00 to your computer and use it in GitHub Desktop.
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 crudlet = require("crudlet"); | |
var localstore = require("crudlet-local-storage"); | |
var pubnub = require("crudlet-pubnub"); | |
var localdb = localstore(); | |
var pubdb = pubnub(); | |
var allDbs = crudlet.parallel(localdb, pubdb); | |
crudlet.run(pubdb, "tail").pipe(crudlet.stream(localdb)); | |
crudlet.run(allDbs, "insert", { data: { message: "hello world" }}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment