git ssb

2+

cel / scuttlebot.io



Tree: 13691e1ee2bb8b8cec137e18d9f495648fba6793

Files: 13691e1ee2bb8b8cec137e18d9f495648fba6793 / tmpl / apis / modules / ssb-client.md

596 bytesRaw

ssb-client

Scuttlebot client.

var ssbClient = require('ssb-client')

// simplest usage, connect to localhost sbot
ssbClient(function (err, sbot) {
  // ...
})

// configuration:
var keys = ssbKeys.loadOrCreateSync('./app-private.key')
ssbClient(
  keys,                // optional, defaults to ~/.ssb/secret
  {
    host: 'localhost', // optional, defaults to localhost
    port: 8008,        // optional, defaults to 8008
    key: keys.id       // optional, defaults to keys.id
  },
  function (err, sbot) {
    // ...
  }
)

View on Github

Built with git-ssb-web