amark on master
reduce not-found acks if via/re… test undo tmp (compare)
amark on master
unbuild - PUBLISHED! 1238 (compare)
amark on master
SEA - Update sea.work to suppor… (compare)
amark on master
stupid cache miss kills me all … (compare)
hi i have run im getting gun.user().get is not a function
gun.user().auth(userid, pass, (e) =>{ gun.user().get('profiles')// gun.user().get is not a function }
just realise it works within this scope, but i cannot return gun.user() to another function , then it will not work. i need to call gun.user() from anywhere i wish to call user related get chain
require(var)
which webpack doesnt like. i dont get the error if i import gun/src
hi guys, how do i check if a path have list or count the list?
somthing like this I think
function isThere(thing, cb){
thing.once(d=>{cb(typeof d == "undefiend")})
}
var things = gun.get('things');
things.set('cat');things.set('dog');
let jsArray = [];
things.map().once(thing=>{
jsArray.push(thing);
console.log(thing)
})
Signature did not match.
const gun = GUN({ peers: ["<ip>:80/gun"] });
but it doesnt seem to be working
I think I'm doing something wrong and possibly stupid.
const gunSpace = Gun(['https://gunjs.herokuapp.com/gun']).get(appSpace);
gunSpace.put('name' : 'my name');
console.log(gunSpace.get('name')); // <-- [Object Object]
what am I missing? i Just want to get the 'my name' string.
const value = await gunSpace.get('name')
or you can use await and do
const value = await gunSpace.get('name')
https://gun.eco/docs/API#-a-name-then-a-gun-then-cb-not-official-yet-
also Bullet.js does some cool stuff but i went down the same hole the gun way makse sence if you start thinking in graphs
bob.get('shared')put('yolo').grant(gun.get('~@Alice'))
then can the Alice see gun.get('~@bob').get('shared')
or does it also need to be placed in a public place. with something like bob> gun.get('shared').put(bob.get(shared))
// Alice can read but Keven cant??
.put(position)
every say 50ms, but its pretty resource intensive and has a lot of latency
a question about data modeling. How can I handle objects with arrays in it? Example:
let object = {
scopes : [
{ name: 'a'},
{ name: 'b'}
],
value : 'my value'
do I have any alternative other than decomposing the object and the array and saving into gun using gun.set() ?
use
function at line 15 of SEA.js. Anyone have some experience using Gun in Expo, or interest in helping sort out a demonstration? I am interested in building a simple client/server monorepo that demonstrates basic auth and chat.
// does login here
let machines = gun.user().get('machines');
let machine = gun.user().get('machine/tesseract');
machine.put({faces: 24, cells: 8, edges: 32});
machines.set(machine);
// let's add machine to the list of machines;
let machine2 = gun.user().get('machine/tesseract2');
machine2.put({faces: 1, cells: 1, edges: 1});
machines.set(machine2);
gun.user().get('machines').map().once(() => {
//this is called once only with machine, not machine2
})
fs
etc. (?) Or one of you want to do a screencall with me to see why webpack has changed... for the 7th time in 5 years? They really make library dev life miserable by constantly changing.gun.user()
and then reuse it several other places, same as with vanilla. What env are you in?once()
usually calls undefined
if no data can be found within some timespan on the current network. However .map()
will make things stream, so you'd want to .once(checkNotFound).map().once()
just got released, if anyone wants to download agregore, here is the release link
https://github.com/AgregoreWeb/agregore-browser/releases/tag/v1.0.0-44