Created
July 6, 2019 17:04
-
-
Save bitnom/881c1863ff1823db2f9a47896fd98981 to your computer and use it in GitHub Desktop.
Gun client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Gun = require('gun'); | |
var peersAr = ['http://tensortom.com:8080/gun']; | |
var gun = Gun({peers: peersAr}); | |
gun.get('mark').put({ | |
name: "Mark", | |
email: "[email protected]", | |
}); | |
gun.get('mark').on(function(data, key){ | |
console.log("update:", data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment