Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
aaronsantiago
@aaronsantiago

Following up on the "performance issues" that I was reporting from before--the issue was that I was maxing out gun performance. I had done map().on() for ~50-60 objects and 3 - 4 additional on()s for each of those as well. gunjs seems to fire quite a lot for map().on() continually (honestly I haven't seen these calls end in my testing) so all of these on()s ended up clogging the system so that it would take 30 - 90 seconds to have a usable interface.

I refactored the whole system to only rely on the one map().on() for data and now things load an order of magnitude faster

Rei
@rei-gun
has anyone got an example of initializing gun in loopback framework? https://loopback.io/
Wasis Haryo Sasoko
@yokowasis
@newtriks gun.get("something/anything") is not working. the correct way would be gun.get('something').get('anything')
Wasis Haryo Sasoko
@yokowasis
anyone can confirm issue #1143 ?
@amark @abow
Adam
@adam-12:matrix.org
[m]
@yokowasis blacklist is now block
Adam
@adam-12:matrix.org
[m]
Well, it does looks like there is an issue with block.
jakethejab
@jakethejab
@yokowasis I can confirm, certify does not work when the block parameter is supplied.
aaronsantiago
@aaronsantiago
Any chance this domain http://gun.js.org/ could get redirected to gun.eco? It has quite the hostile design with high contrast fullscreen color changes
dot357
@dot357:matrix.org
[m]
Greetings i coulndt figure out how to delete a data
i know it is .put(null) but i am having a trouble i would like to operate something like this . where my data is something i would like to delete that information
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
if you can find it, you can null it (from the parent)
show us your attempt many here can most likely help out
dot357
@dot357:matrix.org
[m]
last line db.get is just trying my luck
I am trying to achive when a person creates a room if they want they can delete it
I am able to localte the correct data with last if after that i dunno what to do
Also a quick question i am building this app with vue js i would like to hide the pass values from end user .env files does they work?
Martti Malmi
@mmalmi
here’s a chat that uses ipfs-pubsub-webrtc gun adapter https://ipfs-gun-chat.netlify.app/
Barłomiej Bąk
@dweorh_twitter
@dot357:matrix.org You shouldn't hardcode any sensitive data in your code. passphrase or SEA.pair() you can send to the user eg. via ajax call
something like axios.get(<url to obtain keys>). then( / here your code to deal with rooms / )
Natnael Teferi
@aethiop
@amark the file is not corrupt because I can see the same base64 data back from the graph
dot357
@dot357:matrix.org
[m]
@dweorh_twitter: Should i store it process.env
Piet Groot Kormelink
@pietgk
hello, trying to find out how to unsubscribe from gun.get('objkey').map().on(cb). any tips?
Barłomiej Bąk
@dweorh_twitter
@dot357:matrix.org on the server side it is up to where to store those keys, but in a browser, it cannot be a part of the application's codebase. Also having a service that provides such keys can limit access to your rooms. If everyone can download a file with keys, it is better to do not use it. Safety will stay low but at least performance will be better ;)
@pietgk did you try .off() ?
// add listener to foo
gun.get('foo').on(callback, true)

// remove listener to foo
gun.get('foo').off()
dot357
@dot357:matrix.org
[m]
@dweorh_twitter: I do not want to get the key from server. Instead is there a way to store it on the device
with security option
Piet Groot Kormelink
@pietgk
that works but the map().on() gives a .on for each prop of the object resulting in multiple subscriptions it seems
dot357
@dot357:matrix.org
[m]
@dweorh_twitter: Also what is the difference between getting the key value from server it will just retrieve the key same as before doesnt it please enlighten me. I am new to encryption
Barłomiej Bąk
@dweorh_twitter
@dot357:matrix.org I'm not really sure what do you want to achieve, but you can use SEA.encrypt() with passphrase from the user, but at some point either user has to know password by-heart or fetch it from the server
if you fetch it from the server 1st. it is not a part of your code, 2nd. you may limit who will get the keys, limiting by IP, password, or whatever you want
dot357
@dot357:matrix.org
[m]
So a client ask for a password from a server and it returns 'passphrase' it is still open and anyone can get the key if they wanted
Barłomiej Bąk
@dweorh_twitter
if that's a raw file stored along with other files it will not give you any protection
dot357
@dot357:matrix.org
[m]
Okay i will research about it thanks
Barłomiej Bąk
@dweorh_twitter
yes, if your server would be an open relay then yes
@pietgk mabye map().once() will work for you?
Piet Groot Kormelink
@pietgk
i want to get the changes, so .once is not what i am trying to achieve
Adam
@adam-12:matrix.org
[m]
Trying using changes option for .on
You want changes for each prop, but you don't want to subscribe to each prop?
Guess I should've read original question.
Piet Groot Kormelink
@pietgk
yes i want the changes to each prop
changes option is set to false because i do want all properties
and the changes
Adam
@adam-12:matrix.org
[m]
Maybe .load and then .on changes=true
Not sure
Piet Groot Kormelink
@pietgk
.load would go not change the .map().on() context as far as i can tell (i think)
Piet Groot Kormelink
@pietgk
const chain=gun.get('objkey') // please note each prop is reference to another object
const mapChain = chain.map().on(cb, false) // false to get initial and changes
// cb get called for initial values and changes in object
chain.off()  // or mapChain.off()
// cb still gets called on changes
tedd pasta
@azdez:matrix.org
[m]
@amark: https://github.com/resession/gun-fetch something i am working on, want to use it for the agregore browser