git ssb

3+

dangerousbeans / scuttle-vue



Tree: 71017c48c22279ca599d00429a772a88887eb7e1

Files: 71017c48c22279ca599d00429a772a88887eb7e1 / setup.js

622 bytesRaw
1var pull = require('pull-stream')
2var client = require('ssb-client')
3var key = require('./keys')
4var ws = require('ssb-ws')
5var chalk = require('chalk')
6
7client(function (err, sbot) {
8 printKey = JSON.stringify(key).replace(/\s+/g)
9 console.log('\nThis is your public/private key, paste it into the `key` field at ' + chalk.cyan('http://localhost:3013/#Key') + '\n')
10 console.log(printKey)
11 console.log('\nThis is your web socket remote, paste it into the `remote` field at ' + chalk.cyan('http://localhost:3013/#Key') + '\n')
12 sbot.ws.getAddress(function (err, data) { console.log(data + '\n')})
13 sbot.close()
14})
15
16

Built with git-ssb-web