We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Gun community, thanks for this awesome project 🙂!
I have a question about Gun, I'm using Gun with Node.js and I want to push updates from one script and pull updates from another script.
Why I can't do that?
// pull.js const Gun = require('gun'); const gun = Gun('https://myserver.com/gun'); gun.get('db').get('config').on((data) => console.log({ data }));
// push.js const Gun = require('gun'); const gun = Gun('https://myserver.com/gun'); gun.get('db').get('config').put('New config');
node pull.js # Pull updates node push.js # Push updates
Updates doesn't appear in node pull.js when I execute node push.js until I restart the script node pull.js.
node pull.js
node push.js
I don't want to restart the script node pull.js every time I push updates.
How to do?
The text was updated successfully, but these errors were encountered:
Thanks @amark for your answer on chat.gun.eco!
Here the solution:
const gun = Gun({ peers: ['https://myserver.com/gun'], axe: false });
You have to disable axe.
Sorry, something went wrong.
No branches or pull requests
Hello Gun community, thanks for this awesome project 🙂!
I have a question about Gun, I'm using Gun with Node.js and I want to push updates from one script and pull updates from another script.
Why I can't do that?
Updates doesn't appear in
node pull.js
when I executenode push.js
until I restart the scriptnode pull.js
.I don't want to restart the script
node pull.js
every time I push updates.How to do?
The text was updated successfully, but these errors were encountered: