amark on master
argh, axe needed skip reset. + … is this good enough? it's alive!!!! and 3 more (compare)
amark on master
fix ws error/reconnect ordering requery - oye, hopefully safer perf seemed worth it to add MC … and 4 more (compare)
GUN({axe: false
npm start
or 1-click deploy it. Am I misunderstanding the Q?/stats.html
you see it there. Not if you have a custom server tho.
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 ?