Closed deathg0d closed 2 years ago
Generally we have examples of client instance putting data, which is synced to the server. How do you put data from node.js itself?
import Gun from 'gun/gun'; import "gun/nts"; import "gun/lib/radix"; const peers = ['<A gundb relay server>']; var gun = Gun({ peers }); data = <some data> gun.get('mynode').put(data) <- this does nothing gun.get('mynode').map().once((val, key)=>{ console.log(key) }) <-- prints nothing
Why was this closed? Did you find out why its happening?
Generally we have examples of client instance putting data, which is synced to the server. How do you put data from node.js itself?