git ssb

3+

dangerousbeans / scuttle-vue



Tree: 677b0d50f7bfbe34075b490e66831b62c46fd88a

Files: 677b0d50f7bfbe34075b490e66831b62c46fd88a / 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