Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 20 23:40
    SuaYoo updated the wiki
  • Oct 20 03:50
    resession updated the wiki
  • Oct 20 03:49
    resession updated the wiki
  • Oct 19 22:32
    resession commented #404
  • Oct 19 02:55
    mimiza commented #1137
  • Oct 17 02:47
    rococtz updated the wiki
  • Oct 17 01:22
    cryptoboid updated the wiki
  • Oct 16 11:59
    Choko256 opened #1152
  • Oct 16 11:50
    Choko256 commented #972
  • Oct 16 03:41
    amark updated the wiki
  • Oct 16 02:37
    amark updated the wiki
  • Oct 16 02:28
    amark updated the wiki
  • Oct 15 23:36
    amark updated the wiki
  • Oct 15 19:22
    noctisatrae commented #1141
  • Oct 15 19:20
    noctisatrae synchronize #1141
  • Oct 15 19:18
    noctisatrae synchronize #1141
  • Oct 15 19:16
    noctisatrae synchronize #1141
  • Oct 15 09:23
    ruslanjan commented #1145
  • Oct 15 09:04
    amark closed #1149
  • Oct 15 09:04
    amark commented #1149
Jachen Duschletta
@Dletta
[D]bmatusiak: πŸ‘‘ is appended to your name in user's list
[D]bmatusiak: πŸ˜‹
Mark Nadal
@amark
@estebanrfp
@Dletta do me a favor and change your gitter profile pic to something unique, so it is easier for to scan when I check both sites? <3 <3 <3 thanks! Maybe something silly and super obvious (solid color?). Mostly cause gitter/github generates those pixel art avatars for people and they look very similar.
@jussiry w00t! More voting apps! Yours, NAB, @nmaro 's!
@PrzeoR_twitter WELCOME WELCOME WELCOME!!!!!!!! :zap: :zap: :clap: :clap: WELCOME TO THE COMMUNITY!!!! How'd you hear about us? What are you working on!???
@estebanrfp woops my reply was empty to you, you got things going? Need any more help?
Jachen Duschletta
@Dletta
[D]Pdbz199:
[D]Dyno: Welcome <@84101467539017728>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
[D]marknadal: <@!407331962269728768> the voting app (rock paper scissors) is gorgeous and game like! How do you do it!!!??
[D]marknadal: <@!84101467539017728> yo yo yo !!!!! WELCOME !!!!!!! ⚑ πŸ‘ ⚑ πŸ‘ what are you working on? How'd you hear about us?
[D]marknadal: <@!280426612900757504> ROFL, I didn't notice that, must have been <@!203666215502217216> doing who set up the Discord channel, haha. Oye, well, there are no πŸ‘‘ in decentralization, πŸ‘‘ to centralized. Down with πŸ‘‘ !
[D]bmatusiak: πŸ”₯
[D]bmatusiak: its burnt down. now
pszabop
@pszabop
@amark process.exit() isn't very compatible with the Tape mechanism, as a summary may or may not get printed out. Is there something clean than process.exit()? Should I hack in a close event somewhere?
@amark Also I haven't enabled the HTTP server option yet.
Jachen Duschletta
@Dletta
[D]Pdbz199: Hi! I'm not really working on anything quite yet, just looking around for DB solutions. My friend recommended we take a look at gun db!
[D]marknadal: anybody ? ??? https://gun.eco/docs/Voting ??? thoughts <@!321271119304720384> <@!407331962269728768> @go1dfish
[D]marknadal: <@!84101467539017728> awesome πŸ˜„ glad to hear that. Would love to say hi to your friend too!
[D]applemaster2000: <@!178314946201780224> I'm Preston's friend
[D]bmatusiak: <@178314946201780224> got any ideas on my pr? he anything I need to do/fix
Jachen Duschletta
@Dletta
[D]marknadal: ha, I was just replying before I even saw this here. Replied.
[D]marknadal: I'm not that smart tho, just FYI.
[D]marknadal: BBL
[D]bmatusiak: Lol
pszabop
@pszabop
@amark I think in general the advice should be "don't use the built in HTTP server" if you want a clean shutdown. That way I can use something like this: https://www.npmjs.com/package/http-shutdown . Seem reasonable?
Jachen Duschletta
@Dletta
[D]marknadal: @pszabop oh that is nice you don't have to depend upon it, you can just pass it a server instance. Since you have to pass server to GUN anyways, can you pass the same server to it in your test, or (?)
BBL
pszabop
@pszabop
@amark i can manage the server and add the shutdown functionality to it. I tried it, it didn't work. There are udp4 sockets open. Is there something that is using UDP?
unknown handle Socket {
  _events: [Object: null prototype] {
    listening: [Function],
    message: [Function]
  },
  _eventsCount: 2,
  _maxListeners: undefined,   
  type: 'udp4',
  [Symbol(asyncId)]: 22,
  [Symbol(state symbol)]: {   
    handle: UDP {
      lookup: [Function: bound lookup4],
      onmessage: [Function: onMessage],
      [Symbol(owner)]: [Circular]
    },
    receiving: true,
    bindState: 2,
    connectState: 0,
    queue: undefined,
    reuseAddr: true,
    ipv6Only: undefined,
    recvBufferSize: undefined,
    sendBufferSize: undefined
  }
}
Jachen Duschletta
@Dletta
[D]marknadal: @pszabop lol yeah, quite a few things in NodeJS try to auto-start, here is the list: https://github.com/amark/gun/blob/master/lib/server.js maybe you should just copy it and make/comment-out your own list, so it is easier.
pszabop
@pszabop
@amark Should I submit a patch for options turn off things like multi-cast?
Jachen Duschletta
@Dletta
[D]RobChristian: Hi <@!178314946201780224>, any feedback on this PR? amark/gun#854
Anything you would like me to change to move this forward? Thanks much.
pszabop
@pszabop
@amark nevermind I now see the option for multi-cast. Say, after I get nodejs test running I'd be happy to help fix the docs, maybe add a nodejs how-to guide
@amark okay got rid of the multicast option. Still hanging with 2 TCP sockets open not listening. I think I got an idea how to debug this I'll ask for help only if stuck for a day
Jachen Duschletta
@Dletta
[D]RobChristian: <@!178314946201780224> would you please tell me why this PR is getting ignored? You've asked me to be helpful, and this PR is me doing just that. I can't help if you won't acknowledge or engage with me. If you are unhappy with the PR content, would you please tell me what you would like me to change?
Jachen Duschletta
@Dletta
[D]danlugo92: Hello guys, cannot find in the docs the events to listen for to detect login and logoff.
pszabop
@pszabop
@amark Found it. You have several places in the gun code where you call setInterval(). If you add an .unref() to those calls the process exist cleanly (with multicast disabled, I haven't verified otherwise). See https://stackoverflow.com/questions/30058371/setinterval-keeps-node-js-process-running
@amark you want me to file a bug and a merge request?
@amark it still takes about 10 seconds to exit, I suspect one of the intervals has to terminate. Also multicast definitely hangs. In general, it would be nice to have a clean shutdown. Would require an event that every subsystem would have to handle (e.g. 'close'). I could try and patch that. I bet you think there are other important things to do though.
Jachen Duschletta
@Dletta
[D]RobChristian: <@!178314946201780224> for example, the guys behind OrbitDB provide the following disclaimer. This is the same spirit behind the PR I'm asking you to merge. I'm open to your feedback. Please help me come up with a mutually amicable disclaimer that will help new users quickly become aware of gun's present development status.
pszabop
@pszabop
Say, what is the correct syntax for specifying peers in the gun constructor? I cannot use options if I specify an array of strings, and I can't seem to get the peer if I use options.peers where that looks like { 'http://localhost:8080/gun': {} }
also the code hangs when I try to create a user and a peer can't be connected to. That doesn't seem to be offline first.
Jachen Duschletta
@Dletta
[D]bmatusiak: offline first is the concept of not needing a user account to start using the database.. you can just start writing and reading data and export the data and import the data what ever
pszabop
@pszabop
So the user is not offline first API?
Jachen Duschletta
@Dletta
[D]Dletta: It’s recommended to be online for creation and after that it can be offline, however upon login on a new device, it’s recommended to be online as well
pszabop
@pszabop
Interesting. Ethereum allows offline-first user creation (because a user is just a 256 random value and collisions are impossibly rare). If the primary key is the public key and not the alias that would be possible.
Jachen Duschletta
@Dletta
[D]jussir: <@178314946201780224> the voting system is veery simple. The app is used with live audiences so i doubt anyone has any interest in hacking it. So no authentication of any kind, just create a random user id (stored in localStorage) and set your vote with it: gun.get(namespace).get(userId).put(voteId). Before a new vote reset all votes to null's.
Jachen Duschletta
@Dletta
[D]xenister: hi what's the maximum storage capacity of gun ?
Jachen Duschletta
@Dletta
[D]danlugo92: Hello guys, are there any events that I can subscribe to, for listening on auth status? something like user.on('auth'), cannot find anything on it on docs.
[D]danlugo92: might help to make my app more declarative
[D]Dletta: I think auth is an event, but it would be via Gun.on(β€˜auth’)
[D]Dletta: <@178314946201780224> ^
[D]Dletta: Also <@178314946201780224> Gun just arrived at 11’000 stars on Github πŸ‘