amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.07k stars 1.16k forks source link

Gun in browser is losing events when watching a timeGraph node #953

Open brailateo opened 4 years ago

brailateo commented 4 years ago

Simple scenario: 3 browsers, A, B, and C and two SuperPeers accesible in internet

Tested with all three browsers in the same network (wifi behind router with NAT) and then with C browser on mobile, on 3G data. They act the same way. Added cdn.jsdelivr.net/npm/gun/nts.js , no success, still missing events. Verified all servers and desktop involved in testing, ntpd enable, all time synchronized! Tested with two super-peers, then only with one. I've tested also with Google Chrome and Firefox (both latest version) both are missing events in time log, one at 10-15 events successfully added! The missing events ARE SAVED in Gun, when I'm reloading the page, I found them there, in the timeGraph node when I subscribe with 10-15 older events.

Teo

R0quef0rt commented 3 years ago

Can confirm. This simple listener is doing the exact same thing for me:

channel.time((data) => {
    gun.get(data).once((node) => {
        console.log(node.message)
    })
})

It fails to fire on every 4th or 5th message.