git ssb

0+

mixmix / ssb-client-basic-tutorial



Commit 648a0593a2887cfceaa0915218fc802a29a5447f

fixes!

mixmix committed on 10/17/2018, 6:42:05 AM
Parent: 4a244364583e7a070bb757aa0ba0d8d01fdc6421

Files changed

index.jschanged
index.jsView
@@ -1,16 +1,18 @@
11 const Connection = require('ssb-client')
22
3 +console.log('Connecting')
4 +
35 Connection((err, server) => {
46 if (err) {
57 throw err
68 }
9 + console.log('Connection established')
710
811 server.whoami((err, keys) => {
912 if (err) console.log('could not get keys, got err', err)
10- else console.log(keys)
13 + else console.log('whoami details:', keys)
1114
15 + console.log('disconnecting from server')
1216 server.close()
13- // close the connection to the server (not the server itself!)
14- }
17 + })
1518 })
16-

Built with git-ssb-web