Commit 648a0593a2887cfceaa0915218fc802a29a5447f
fixes!
mixmix committed on 10/17/2018, 6:42:05 AMParent: 4a244364583e7a070bb757aa0ba0d8d01fdc6421
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -1,16 +1,18 @@ | ||
1 | 1 … | const Connection = require('ssb-client') |
2 | 2 … | |
3 … | +console.log('Connecting') | |
4 … | + | |
3 | 5 … | Connection((err, server) => { |
4 | 6 … | if (err) { |
5 | 7 … | throw err |
6 | 8 … | } |
9 … | + console.log('Connection established') | |
7 | 10 … | |
8 | 11 … | server.whoami((err, keys) => { |
9 | 12 … | if (err) console.log('could not get keys, got err', err) |
10 | - else console.log(keys) | |
13 … | + else console.log('whoami details:', keys) | |
11 | 14 … | |
15 … | + console.log('disconnecting from server') | |
12 | 16 … | server.close() |
13 | - // close the connection to the server (not the server itself!) | |
14 | - } | |
17 … | + }) | |
15 | 18 … | }) |
16 | - |
Built with git-ssb-web