amark on master
subscribe only on backpropagati… Merge branch 'master' of http:/… PANIC 4: AXE get subscriptions (compare)
amark on master
Panic tests for rod & radix.js … (compare)
amark on master
reduce not-found acks if via/re… test undo tmp (compare)
amark on master
unbuild - PUBLISHED! 1238 (compare)
const GUN = require('gun/gun');
const gun = GUN({localStorage: false, radisk: false});
const alice = gun.get('alice').put({name: 'alice'});
const bob = gun.get('bob').put({name: 'bob'});
const users = gun.get('users');
users.map().on(user => console.log(user));
users.set(alice)
users.set(bob);
alice.get('friends').map().on(friend => console.log("Alice Friend", friend));
alice.get('friends').set(bob);
Found the problem,
const GUN = require('gun');
const gun = GUN(/*{localStorage: false, radisk: false}*/);
const alice = gun.get('alice').put({name: 'alice'});
const bob = gun.get('bob').put({name: 'bob'});
const users = gun.get('users');
users.map().on(user => console.log(user));
users.set(alice)
users.set(bob);
alice.get('friends').map().on((friend, k) => console.log("Alice Friend", friend, k));
alice.get('friends').set(bob);
alice.get('friends').set(alice);
So apparently I can't disable storage, so is there a way to run gun only in memory ?
gun.get('users')
which means they are in the public space which everyone edit/delete.
gun.user().get('friends')
(as opposed to gun.get('users')