git ssb

0+

mixmix / ssb-client-basic-tutorial



Tree: 4a244364583e7a070bb757aa0ba0d8d01fdc6421

Files: 4a244364583e7a070bb757aa0ba0d8d01fdc6421 / index.js

320 bytesRaw
1const Connection = require('ssb-client')
2
3Connection((err, server) => {
4 if (err) {
5 throw err
6 }
7
8 server.whoami((err, keys) => {
9 if (err) console.log('could not get keys, got err', err)
10 else console.log(keys)
11
12 server.close()
13 // close the connection to the server (not the server itself!)
14 }
15})
16
17

Built with git-ssb-web