mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
6 lines
400 B
JavaScript
6 lines
400 B
JavaScript
process.env.GUN_ENV = "false";
|
|
var Gun=require('gun')
|
|
var g = new Gun({peers: ['http://localhost:4246/gun'],localStorage: false});
|
|
g.get("FOOxx").get("BARxx").once(data=>console.log("RCVD: (SHOULD NOT BE UNDEFINED!)", data));
|
|
|
|
console.log('now run ```var g = new Gun({peers: ["http://localhost:4246/gun"],localStorage: false}); g.get("FOOxx").get("BARxx").once(data=>console.log("RCVD:", data))```'); |