Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:25
    mrzmyr opened #1174
  • 09:00
    Emad-salah commented #1170
  • 06:47
    amark commented #1170
  • 06:47
    amark closed #1155
  • 06:47

    amark on master

    YSON Fixes (#1170) * Rewrite Y… (compare)

  • 06:47
    amark closed #1170
  • Dec 07 20:20
    mmalmi updated the wiki
  • Dec 06 21:19
    resession updated the wiki
  • Dec 06 21:18
    resession updated the wiki
  • Dec 06 21:16
    resession updated the wiki
  • Dec 06 21:15
    resession updated the wiki
  • Dec 06 14:56
    capitalistdog commented #1074
  • Dec 06 14:52
    noctisatrae commented #1074
  • Dec 06 14:46
    noctisatrae commented #1074
  • Dec 06 14:30
    KenEucker commented #1074
  • Dec 06 14:28
    noctisatrae commented #1074
  • Dec 06 13:57
    KenEucker commented #1074
  • Dec 06 13:18
    noctisatrae commented #1074
  • Dec 03 11:56
    Emad-salah commented #1170
  • Dec 03 11:50
    Emad-salah synchronize #1170
Wasis Haryo Sasoko
@yokowasis

@amark my video is not about the result {"a" : "b"}. It's about the amount of it get fired. The expected result is there should 7 x {"a" : "b"} fired.

The bug is : the same command run multiple times, yet it has different result.
e.g.
1st run result : 7 x {"a" : "b"} fired.
2nd run result : 4 x {"a" : "b"} fired.
8th run result : 1 x {"a" : "b"} fired.

It's using gundb on local browser with no peer. So we can rule out the latency / slow peers.

Mark Nadal
@amark
and this happens with RAD on IndexedDB? eep. Or does it happen to default GUN / localStorage?
Wasis Haryo Sasoko
@yokowasis
@amark RAD on IndexedDB
You can see my initialization below the video. It's 1 page index.html page.
Now that I think about it. I never tried local storage
Mark Nadal
@amark
@yokowasis please submit the index to a GitHub Issue, I don'tw ant to lose this
Wasis Haryo Sasoko
@yokowasis
can anyone try gun.load ? it works yesterday
Jabis Sevon
@jabis
if you upgraded gun version, then you'll need to include gun/lib/utils.js or something like that - most were removed from core to libs @yokowasis
@amark, > ... tho fetching the whole node first defeats the point
like I said, make a metadata .get('chat').get('meta') first - didn't need to be the root object, just somewhere in the path it seemed
but it's definitely a reincarnation of the "first get produces undefined", so possibly a regression
Barłomiej Bąk
@dweorh_twitter

a few words about my issue with certificates I had a few days ago

let gun1 = GUN({...})
let gun2 = GUN({...})

let pair1 = SEA.pair()
let pair2 = SEA.pair()

let cert = await SEA.certify( '*', {'*': 'messages'}, pair1)

gun2.get('~' + pair1.pub).get('messages').put({msg: 'my message'}, null, {opt: {cert: cert}}) // that will NOT work, anonymous user

await gun2.user().auth(pair2)
gun2.get('~' + pair1.pub).get('messages').put({msg: 'my message'}, null, {opt: {cert: cert}}) // that will work, 'pair2' user

What I mean by this, that in my case certificates used by anonymous users don't work. The user has to be authenticated to use someone's else certificates.
At least that's how it is on my side.

Wasis Haryo Sasoko
@yokowasis
@dweorh_twitter you probably right. The easiest way to allow public write is, you log them using anonymous key pair.
So, when someone visit your website, you log them in anonymously. That way you can use certificate.
deathg0d
@deathg0d
I have a very basic question. So how does one implement pagination using gun? I assume you load all the data, sort (may be based on timestamp), and you filter based on page number? But how efficient is this assuming the entries could be very long? (and you might have to make thousands of such queries)
dot357
@dot357:matrix.org
[m]
Hello there i was coding my app all of a sudden pairs doesnt see each other
when i rejjoin a chat room someof the messages comes but thats it
it used to be working fine
Can anyone help me with this?
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
Sounds like a network issue, but you're going to be way more detailed to get suggestions as the above description is too vague and lacks any technical details/logs
Can you reproduce this and share a working example on glitch/etc
dot357
@dot357:matrix.org
[m]
I am on the same network as it works on before i even tested on ngrok
If you want i can share my screen?
So we can talk about it
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
I doubt anyone has that type of availability - sorry!
dot357
@dot357:matrix.org
[m]
This is my message send component
This is my message getter component db.get.on is just for cheking for am i able to get the data from peers
This is a msg send
from firefox
It doesnt get the message from the other pair
I coulnt figure it out
2 days ago same code was working
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
as you can see the websocket connection is failing
that's the issue
dot357
@dot357:matrix.org
[m]
It used to fail but
i worked
it worked before
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
GUN depends on those websockets being reliably connected. Are you doing this behind a proxy/gateway/something?
Yeah this seems about your network connectivity conditions and not GUN itself
dot357
@dot357:matrix.org
[m]
Let me try another connection hold on
same issue
After i logout and signin again i can see somemessages
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
How about you use your own GUN server?
you're using a public/demo one which is not guaranteed to be reliable, run your own GUN server and the issues will disappear
dot357
@dot357:matrix.org
[m]
I have tried ngrok for server
issue still continues
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
ngrok?
that's got nothing to do with it
dot357
@dot357:matrix.org
[m]
It turns your localhost to a server
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
not sure where you're getting this from, but you need to run your own GUN server and then use that for your project if you want it to be reliable and up to your own devices ;)
dot357
@dot357:matrix.org
[m]
i will send link hold on