Files: b2086b92f2845aad21bfd835297d3ec02d10a921 / setup.js
622 bytesRaw
1 | var pull = require('pull-stream') |
2 | var client = require('ssb-client') |
3 | var key = require('./keys') |
4 | var ws = require('ssb-ws') |
5 | var chalk = require('chalk') |
6 | |
7 | client(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