git ssb


0+

Dominic / ssb-client-v2



Branch:

Dominic Tarr committed 4.4.0Latest: adee66a on 11/27/2016, 5:43:15 AM
📄README.md
📄index.js
📄package.json
📁test

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

License

MIT, Copyright 2015 Paul Frazee and Dominic Tarr


Built with git-ssb-web