Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 03 09:31
    pwFoo closed #1257
  • Jul 03 09:31
    pwFoo commented #1257
  • Jul 01 00:15
    alfonsocuccaro commented #259
  • Jun 30 23:49
    amark commented #259
  • Jun 30 14:34
    alfonsocuccaro commented #259
  • Jun 30 14:15
    draeder commented #259
  • Jun 30 08:41
    alfonsocuccaro commented #259
  • Jun 30 04:58
    amark commented #259
  • Jun 29 00:31
    fysoul17 commented #743
  • Jun 28 19:31
    noctisatrae commented #1258
  • Jun 28 19:31
    noctisatrae commented #1258
  • Jun 28 19:30
    noctisatrae commented #1258
  • Jun 28 19:30
    noctisatrae commented #1258
  • Jun 28 17:05
    bmatusiak commented #1258
  • Jun 28 17:00
    bmatusiak commented #1258
  • Jun 27 21:52
    noctisatrae commented #1258
  • Jun 27 21:06
    noctisatrae commented #1258
  • Jun 27 21:04
    noctisatrae commented #1258
  • Jun 27 21:03
    noctisatrae commented #1258
  • Jun 27 02:00
    bmatusiak commented #1258
dot357
@dot357:matrix.org
[m]
Thanks
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
and YES pure luck 15 days is a row sounds fine, if there's an issue with that specific server, it might even be 360 days of luck. Use your own resources if you want to guarantee uptime/etc in your app
dot357
@dot357:matrix.org
[m]
Thanks mate i am trying thi
s
right now
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
but if you see websocket connections fail, look no further
dot357
@dot357:matrix.org
[m]
Hey i have rebuilded the app and it worked again
i belive it has something with the code
I used the same codes before
Ulvi YELEN
@ulvido
hi. If I created a user in one computer and try to login that in another computer I got this error? what is dare is not a function.
Hello wonderful person! :) Thanks for using GUN, please ask for help on http://chat.gun.eco if anything takes you longer than 5min to figure out!
radisk.js:28 ERROR: Radisk needs `opt.store` interface with `{get: fn, put: fn (, list: fn)}`!
tmp_js_export.js:362 Error calling method once on: Gun_: {$: Gun, root: {…}, id: 5, back: {…}, on: ƒ, …}[[Prototype]]: Object error: TypeError: dare is not a function
...
...
Barłomiej Bąk
@dweorh_twitter
without a code nobody will be able to help you, but for now, disable radisk, use localStorage and check if your code works that way
Ulvi YELEN
@ulvido
thank you.
I found it. it is a /lib/store.js function triggered
Gun.on('create', function(root){
...
Mark Nadal
@amark
@jabis :+1:
@dweorh_twitter interesting . Can I ask a dumb question: What use cases exist for "everyone" certificates?
@deathg0d https://gun.eco/docs/RAD#lex ! :)
@dot357:matrix.org glad you got your issue fixed! :)
@ulvido You're missing gun/lib/radisk.js in your list it looks like.
:clap: @dweorh_twitter @lmangani:matrix.org @yokowasis !
@Fredaroo_twitter so more generics? Yes, please be detailed, the better I can improve things then.
@daviddahl Wow. Wowowowwow. Can you help me get http://securerender.org/ off the ground? I've already gotten Mark Mayo (ex-CPO Mozilla) Brendan Eich, and some Edge roughly interested.
4 replies
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
sounds like NFTs ;)
Barłomiej Bąk
@dweorh_twitter
@amark Hey, for me there are a few use cases, to store some not critical data like:
  1. Anonymous tracking.
  2. Leave feedback, do a survey
  3. Leave contact details to call-back or so
    Nothing fancy. Only one user can be authenticated at the time, so if we would like to do all that in one session, it would require 3 new users, with user().auth and user().leave. Not a big deal, but there is information in SEA.certify() about 'everyone' but should be 'everyone authorized'. That may save other developers hours of debugging ;)
Martti Malmi
@mmalmi
“Gun.js: Painless React State Management”. Comments? https://siriusbusiness.fi/gun-for-react-state-management
link to some redux boilerplate example would be welcome
Martti Malmi
@mmalmi
@amark what’s the 3rd param of .on() callback?
sahaabhishek
@sahaabhishek
Hi everyone, I'm using user.create(alias, pass, cb, opt) to register users. How do I get all users list?
Barłomiej Bąk
@dweorh_twitter
you can't
sahaabhishek
@sahaabhishek
How then we can search for any user?
Barłomiej Bąk
@dweorh_twitter
it's up to you, you can make a place where all created users will drop info about themselves or so
sahaabhishek
@sahaabhishek
Okay got it. Thanks. So I need to introduce another node something like 'profiles' .
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
Indeed, as part of the flow you should create and maintain a separate index of users that's made for searching and interacting without using (or leaking) anything about the real user objects. Possibly opt-in ;)
Barłomiej Bąk
@dweorh_twitter
yep :)
sahaabhishek
@sahaabhishek
Great! :)
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
and watch out for tombstones if you ever delete any :)
sahaabhishek
@sahaabhishek
yes sure... :)
sahaabhishek
@sahaabhishek
I'm getting error gun.js:1672 WebSocket connection to 'ws://localhost:8765/gun' failed:
Though, the data is synchronized perfectly between two browsers.
What is the need of peer?
Adam Bowman
@abow
Anyone else notice that when you go to gun.eco and quickly click on the github link all the videos on the page start playing?
There is also a text box at the top of the page that doesn't seem to do anything.
Shendy
@devshendy
Hello everyone,
I am new here, and specially in the distributed world. So please excuse me if my questions seems dumb at anytime.
I see now gun is made for the web, does it mean we cannot have peers using only a mobile app?
I know it uses localStorage and indexedDB of the web browser, and how about realm for mobile apps?
For example, I found that we can run npm packages using a package in Flutter called flutter_js, but I thought how gun run in Flutter without localStorage or indexedDB .. or this would be a future feature?
Adam
@adam-12:matrix.org
[m]
A PWA might be a good mobile option for you depending on the features you need. @devshendy
Adam Bowman
@abow
Is there a way to get another user's epub?
Shendy
@devshendy
@adam-12:matrix.org Yeah i get it, it just still web browser based.
CSS for me is a painful framework, I do UI on mobile apps more productive.
Barłomiej Bąk
@dweorh_twitter
@abow in general epub is not a secret but there is no such thing as a list of users, so you can store 'known users' in some node, eg. 'profiles', with that epub along with other data you may find useful
other option is to get user details from its message
Barłomiej Bąk
@dweorh_twitter

let's say there is a common node where all users store data,
if a user did something like

let message = await gun.user().get('all').set({ msg: 'hello'})
gun.get('messages').get('first_message').put(message)

later you can do this:

let data = await gun.get('messages').get('fist_message')
let alias = gun.user(data).get('alias')
Adam Bowman
@abow
Thanks @dweorh_twitter. I currently store the epub in the user's profile for others to access. I was hoping I could do away with that and somehow get it from gun.user().
Barłomiej Bąk
@dweorh_twitter
so, to use gun.user() you would have to get a message from the user, that the user stores in his userspace, as in my example, at least I don't know any other way :)
Barłomiej Bąk
@dweorh_twitter
does anyone know git repo where we can pull changes to the documentation?
We had questions about a list of users a few times in the last couple of days, and I guess examples in the official documentation are not helpful. I would say they can be confusing. eg.
// retrieve all available users
gun.get('users').map().on(ui.show.users)
Shendy
@devshendy
@adam-12:matrix.org Plus, when the user leave the browser to use another app, it means he went offline, right? in the case of desktop he is still online even the browser tab is not the active one at the moment.
Barłomiej Bąk
@dweorh_twitter

I've found a strange behavior. I'm not sure if that's a bug or it works as designed but here is a code

let room = SEA.pair()
let user = SEA.pair()
let cert = await SEA.certify( 
  '*',
  { '*':'posts', '+': '*' },
  room
)

await gunRoom.get('posts') // => undefined

await gunUser.user().auth(user)
await gunUser.get('~' + room.pub).get('posts').get(user.pub).get('messages').put({message: 'hello'}, null, {opt: {cert: cert}})

gunRoom.user().get('posts').get(user.pub).get('messages') // => {message: hello}
gunRoom.user().get('posts').get(user.pub).put(null)

gunRoom.user().get('posts').get(user.pub).get('messages') // => undefined
gunRoom.user().get('posts').get(user.pub).set(null)

gunRoom.user().get('posts').get(user.pub).get('messages') // => {message: hello}

the whole thing is in a difference .put(null) vs .set(null)

Barłomiej Bąk
@dweorh_twitter

we can go a bit further with it

await gunUser.get('~' + room.pub).get('posts').get(user.pub).get('messages').put(null, null, {opt: {cert: cert}})
gunRoom.user().get('posts').get(user.pub).get('messages') // => undefined

await gunUser.get('~' + room.pub).get('posts').get(user.pub).get('messages').set(null, null, {opt: {cert: cert}})
gunRoom.user().get('posts').get(user.pub).get('messages') // => {message: hello, ku33iqysRfusABH: null}

when the owner of the message .set(null) it reverts the nullified by .put(null) document with some extra hash key with a null value

tedd pasta
@azdez:matrix.org
[m]
i was trying to chain gun.get() like this
let someArr = ['test', 'tests', 'testing']
for(let i = 0;i < someArr.length;i++){
gun.get(someArr[i])
}
gun.once(data => {console.log(data)})