git ssb

2+

Dominic / ssb-client



Tree: 87a65d74fc19501dc9c07b90c48108364bce60f3

Files: 87a65d74fc19501dc9c07b90c48108364bce60f3 / README.md

900 bytesRaw

ssb-client v2

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) {
    // ...
  }
)

## CLI

ssb-client includes a command-line program that can run an sbot plugin
as an sbot client application.

// run current directory module: ssb-client .

// run an example app on an alternate port: ssb-client ~/src/ssb-example --example.port 8976 ```

License

MIT, Copyright 2015 Paul Frazee and Dominic Tarr

Built with git-ssb-web